|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
LocalHost.java
Essentially, the Xmiddle localhost is expected to extend
Host and implement this interface. It provides
methods to manage a queue of commands, get the IDs of the host,
control the operation of the localhost, etc.
Created: Fri Jul 20 15:32:15 2001
| Method Summary | |
void |
addHostListener(HostListener application)
Registers a general HostListener with this LocalHost. |
void |
addHostListener(java.lang.Object primaryID,
HostListener application)
Registers a HostListener with the localhost. |
void |
exit()
Signifies that we're about to exit the platform |
void |
flushqueue()
Removes all pending requests from the queue |
LinkTable |
getLinks()
Returns the local host's linktable. |
java.lang.Object |
getPrimaryID()
Returns the primary ID of the host |
java.lang.Object |
getSecondaryID()
Returns the secondary ID of the host |
void |
pause()
Stops servicing requests |
void |
queue(java.lang.Object[] command)
Queue a command to be serviced by the localhost. |
void |
removeHostListener(HostListener application)
Unregisters a HostListener with this localhost. |
void |
removeHostListener(java.lang.Object primaryID,
HostListener application)
Unregisters a HostListener with the localhost. |
void |
run()
Starts the thread which services requests |
void |
start()
Starts servicing requests |
| Methods inherited from interface edu.UCL.xmiddle.framework.lib.HostListener |
hostInReach, hostOutOfReach |
| Method Detail |
public void queue(java.lang.Object[] command)
command - The command and its parameters (left to the implementor)public void flushqueue()
public void run()
run in interface java.lang.Runnablepublic void start()
public void pause()
public void exit()
public void addHostListener(HostListener application)
application - The HostListener to be notified.
public void addHostListener(java.lang.Object primaryID,
HostListener application)
primaryID - The host, identified by its primary IDapplication - The object to be notifiedpublic void removeHostListener(HostListener application)
application - The HostListener not to be notified any more
public void removeHostListener(java.lang.Object primaryID,
HostListener application)
primaryID - The host, identified by its primaryIDapplication - The object not to be notified any morepublic LinkTable getLinks()
LinkTable valuepublic java.lang.Object getPrimaryID()
Object valuepublic java.lang.Object getSecondaryID()
Object value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||