|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kth.dks.dks_comm.ConnectionManager
public class ConnectionManager
| Method Summary | |
|---|---|
void |
end()
|
java.util.Collection |
getAllNodes()
|
CommunicationInfo |
getComInfo()
|
ConnectionHandler |
getConnHandler()
Returns the sole connection handler registered with this instance of the ConnectionManager |
DKSMarshal |
getDKSMarshal()
|
java.lang.String |
getHostAddress()
Returns the hostname of the current ConnectionManager |
static ConnectionManager |
getInstance(int port)
Returns the sole instance of this class, port 0 will bind to any port (use getLocalPort() to find out which); |
static ConnectionManager |
getInstanceMultiHome(int port,
java.net.InetAddress bindAddr)
Returns the sole instance of this class, port 0 will bind to any port (use getLocalPort() to find out which); |
int |
getLocalPort()
Returns the local port that this communication layer is actually listening to! |
double |
getNodeRTT(DKSRef node)
|
WebServer |
getWebServer()
|
static ConnectionManager |
newInstance(int port)
This static factory method is provided for backwards compatibility, and for testing purposes. |
void |
register(java.lang.Object obj)
|
void |
registerDKSNode(DKSRef _dksRef,
DKSNode node)
|
boolean |
send(MsgSrcDestWrapper triple)
|
void |
unregisterDKSNode(DKSRef _dksRef)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ConnectionManager newInstance(int port)
throws java.io.IOException
port - int port number to run on
java.io.IOExceptionpublic ConnectionHandler getConnHandler()
public static ConnectionManager getInstance(int port)
throws java.io.IOException
java.io.IOException
public static ConnectionManager getInstanceMultiHome(int port,
java.net.InetAddress bindAddr)
throws java.io.IOException
java.io.IOExceptionpublic int getLocalPort()
public java.lang.String getHostAddress()
public void registerDKSNode(DKSRef _dksRef,
DKSNode node)
throws DKSNodeAlreadyRegistered
DKSNodeAlreadyRegisteredpublic void unregisterDKSNode(DKSRef _dksRef)
public java.util.Collection getAllNodes()
public boolean send(MsgSrcDestWrapper triple)
public void register(java.lang.Object obj)
public DKSMarshal getDKSMarshal()
public void end()
public CommunicationInfo getComInfo()
public double getNodeRTT(DKSRef node)
public WebServer getWebServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||