|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovyx.gpars.serial.SerialHandles
gpars.remote.LocalHost
class LocalHost extends SerialHandles
Represents communication point with other local hosts. Usually it is enough to have one LocalHost per JVM but it is possible to have several.
It can be one or several local nodes hosted on local host. For most applications one should be enough but sometimes several can be useful as well. Local host contains - remote hosts connected with this one - remote nodes known to this host - local nodes available on this hostField Summary | |
---|---|
protected Map |
localNodes
Local nodes known to the provider |
protected Map |
remoteHosts
Hosts known to the provider |
protected HashMap |
remoteNodes
Registry of remote nodes known to the provider |
Constructor Summary | |
LocalHost()
|
Method Summary | |
---|---|
void
|
connect(LocalNode node)
Connect local node to the provider |
void
|
connectRemoteNode(UUID nodeId, SerialContext host, Actor mainActor)
|
void
|
disconnect(LocalNode node)
Disconnect local node from the provider |
void
|
disconnect()
|
void
|
disconnectRemoteNode(UUID nodeId)
|
SerialContext
|
getSerialHost(UUID hostId, Object conn)
|
void
|
onDisconnect(SerialContext host)
|
Field Detail |
---|
protected final Map localNodes
protected final Map remoteHosts
protected final HashMap remoteNodes
Constructor Detail |
---|
LocalHost()
Method Detail |
---|
public void connect(LocalNode node)
public void connectRemoteNode(UUID nodeId, SerialContext host, Actor mainActor)
public void disconnect(LocalNode node)
public void disconnect()
public void disconnectRemoteNode(UUID nodeId)
public SerialContext getSerialHost(UUID hostId, Object conn)
public void onDisconnect(SerialContext host)
Groovy Documentation