|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Boss
The core interface for the Gaggle Boss. Any software that wishes to coordinate communication between one or more Gaggled applications (geese) must implement this. Currently the Gaggle uses Java RMI for communication between Geese and the Boss. Other (non-language-dependent) options are being considered. Implementations of Boss are desgined to be compiled by rmic into stubs which can communicate across JVMs. Hence every method must throw RemoteException.
| Method Summary | |
|---|---|
void |
broadcastCluster(java.lang.String sourceGoose,
java.lang.String targetGoose,
Cluster cluster)
Tells the boss to broadcast a Cluster object. |
void |
broadcastMatrix(java.lang.String sourceGoose,
java.lang.String targetGoose,
DataMatrix matrix)
Tells the boss to broadcast a DataMatrix object. |
void |
broadcastNamelist(java.lang.String sourceGoose,
java.lang.String targetGoose,
Namelist nameList)
Tells the boss to broadcast a Namelist object. |
void |
broadcastNetwork(java.lang.String sourceGoose,
java.lang.String targetGoose,
Network network)
Tells the boss to broadcast a Network object. |
void |
broadcastTuple(java.lang.String sourceGoose,
java.lang.String targetGoose,
GaggleTuple gaggleTuple)
Tells the boss to broadcast a GaggleTuple object. |
java.lang.String[] |
getGooseNames()
Deprecated. Goose.update() will automatically provide you with the latest list of goose names. |
NewNameHelper |
getNameHelper()
Deprecated. Eventually there will be a new way to handle this |
void |
hide(java.lang.String gooseName)
Tells the boss to hide the specified goose. |
java.lang.String |
register(DeafGoose deafGoose)
Deprecated. All code involving DeafGoose will be removed. |
java.lang.String |
register(Goose goose)
Adds a new goose to the Gaggle |
java.lang.String |
renameGoose(java.lang.String oldName,
java.lang.String newName)
|
void |
show(java.lang.String gooseName)
Tells the boss to show the specified goose. |
void |
terminate(java.lang.String gooseName)
Terminates the specified goose. |
void |
unregister(java.lang.String gooseName)
Called when the named goose is to be removed from the gaggle. |
| Method Detail |
|---|
java.lang.String register(Goose goose)
throws java.rmi.RemoteException
goose - The goose to be added
java.rmi.RemoteException - if RMI communication fails
void unregister(java.lang.String gooseName)
throws java.rmi.RemoteException
gooseName - The name of the goose to remove
java.rmi.RemoteException - if RMI communication fails
java.lang.String register(DeafGoose deafGoose)
throws java.rmi.RemoteException
deafGoose - The DeafGoose
java.rmi.RemoteException - if RMI communication fails
void broadcastNamelist(java.lang.String sourceGoose,
java.lang.String targetGoose,
Namelist nameList)
throws java.rmi.RemoteException
sourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.nameList - The NameList object
java.rmi.RemoteException - if RMI communication fails
void broadcastMatrix(java.lang.String sourceGoose,
java.lang.String targetGoose,
DataMatrix matrix)
throws java.rmi.RemoteException
sourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.matrix - The DataMatrix object
java.rmi.RemoteException - if RMI communication fails
void broadcastTuple(java.lang.String sourceGoose,
java.lang.String targetGoose,
GaggleTuple gaggleTuple)
throws java.rmi.RemoteException
sourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.gaggleTuple - the GaggleTuple object
java.rmi.RemoteException - if RMI communication fails
void broadcastCluster(java.lang.String sourceGoose,
java.lang.String targetGoose,
Cluster cluster)
throws java.rmi.RemoteException
sourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.cluster - the Cluster object
java.rmi.RemoteException - if RMI communication fails
void broadcastNetwork(java.lang.String sourceGoose,
java.lang.String targetGoose,
Network network)
throws java.rmi.RemoteException
sourceGoose - The name of the goose originating the broadcasttargetGoose - The name of the goose to receive the broadcast. If this is "boss",
all listening geese will receive the broadcast.network - the Network object
java.rmi.RemoteException - if RMI communication fails
void hide(java.lang.String gooseName)
throws java.rmi.RemoteException
gooseName - The name of the goose to hide
java.rmi.RemoteException - if RMI communication fails
void show(java.lang.String gooseName)
throws java.rmi.RemoteException
gooseName - The name of the goose to show
java.rmi.RemoteException - if RMI communication fails
java.lang.String[] getGooseNames()
throws java.rmi.RemoteException
java.rmi.RemoteException - if there is an RMI connection error
java.lang.String renameGoose(java.lang.String oldName,
java.lang.String newName)
throws java.rmi.RemoteException
java.rmi.RemoteException
NewNameHelper getNameHelper()
throws java.rmi.RemoteException
java.rmi.RemoteException - if RMI communication fails
void terminate(java.lang.String gooseName)
throws java.rmi.RemoteException
gooseName - The name of the goose to terminate
java.rmi.RemoteException - if RMI communication fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||