|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.systemsbiology.gaggle.geese.common.RmiGaggleConnector
public class RmiGaggleConnector
Handles connecting and disconnecting from the Gaggle Boss and exporting the Goose as an RMI remote object. Listeners can be registered which will be notified of connect and disconnect events. TODO: better exception handling.
| Constructor Summary | |
|---|---|
RmiGaggleConnector(Goose goose)
|
|
| Method Summary | |
|---|---|
void |
addListener(GaggleConnectionListener listener)
listeners will be notified on connect and disconnect. |
void |
connectToGaggle()
connect to the Gaggle Boss, performing RMI exportObject if necessary. |
void |
disconnectFromGaggle(boolean printStackTrace)
remove this goose from the Boss and unexport. |
boolean |
getAutoStartBoss()
|
Boss |
getBoss()
|
boolean |
isConnected()
|
void |
removeListener(GaggleConnectionListener listener)
|
void |
setAutoStartBoss(boolean autoStartBoss)
Determines whether we should try and start a boss if a boss cannot be found; true by default. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RmiGaggleConnector(Goose goose)
goose - a non-null goose| Method Detail |
|---|
public void connectToGaggle()
throws java.lang.Exception
java.lang.Exception - if connection cannot be performedpublic void disconnectFromGaggle(boolean printStackTrace)
printStackTrace - allows a stack trace to be printed if the call failspublic void addListener(GaggleConnectionListener listener)
listener - The listener to addpublic void removeListener(GaggleConnectionListener listener)
public boolean isConnected()
public void setAutoStartBoss(boolean autoStartBoss)
autoStartBoss - whether to try and start a boss if no boss is foundpublic boolean getAutoStartBoss()
public Boss getBoss()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||