|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.UCL.xmiddle.framework.controller.Locator
Locator.java Locator is the xmiddle component which is responsible for maintaining a list of which hosts are in reach with the local host at the time. How the list is maintained accurate, is left up to the implementor. Created: Fri Jul 20 12:45:15 2001
Field Summary | |
protected Manager |
caller
This is a reference to the Manager object of the
platform. |
protected java.util.Hashtable |
inReach
This is the list of hosts in reach. |
protected LocalHost |
localhost
This is the reference to the local host object, as given by the setLocalHost method |
Constructor Summary | |
Locator()
|
Method Summary | |
abstract void |
exit()
Signifies to the Locator implementation that the platform is going to stop operating. |
abstract Host |
getHost(java.lang.Object primaryID)
Returns the host (if it is inReach) identified by the given primary ID. |
java.util.Hashtable |
getHosts()
Returns the hosts which are currently in reach |
abstract boolean |
isInReach(java.lang.Object primaryID)
Returns true if the Host identified by the given primary ID is currently in reach. |
abstract void |
pause()
Stops the process (until a start() call is
made). |
abstract void |
run()
Starts the Locator thread. |
void |
setLocalHost(LocalHost localhost)
Gives a reference to the localhost. |
abstract void |
start()
Starts the process, after a pause() call for
example. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable inReach
protected Manager caller
Manager
object of the
platform. This can be used for notification when specific hosts
are online, printing debugging information, etc
protected LocalHost localhost
setLocalHost
method
Constructor Detail |
public Locator()
Method Detail |
public abstract void run()
run
in interface java.lang.Runnable
public abstract void exit()
public abstract void pause()
start()
call is
made). This can be used for example in the case of a network
disconnection, battery conservation mode, etc.
public abstract void start()
pause()
call for
example.
public java.util.Hashtable getHosts()
Hashtable
valuepublic abstract Host getHost(java.lang.Object primaryID)
primaryID
- the primary ID of the host
public void setLocalHost(LocalHost localhost)
localhost
- The local host representationpublic abstract boolean isInReach(java.lang.Object primaryID)
primaryID
- The primary ID of the host.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |