|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.serial.SerialHandles groovyx.gpars.remote.LocalHost
public 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
Field Summary | |
---|---|
protected java.util.Map |
localNodes
|
protected java.util.Map |
remoteHosts
|
protected java.util.HashMap |
remoteNodes
|
Fields inherited from class SerialHandles | |
---|---|
id, localHandles |
Constructor Summary | |
LocalHost()
|
Method Summary | |
---|---|
void
|
connect(LocalNode node)
|
void
|
connectRemoteNode(java.util.UUID nodeId, SerialContext host, Actor mainActor)
|
void
|
disconnect(LocalNode node)
Disconnect local node from the provider |
void
|
disconnect()
|
void
|
disconnectRemoteNode(java.util.UUID nodeId)
|
SerialContext
|
getSerialHost(java.util.UUID hostId, java.lang.Object attachment)
|
void
|
onDisconnect(SerialContext host)
|
private void
|
onDisconnectForLocalNodes(RemoteNode t)
|
Methods inherited from class SerialHandles | |
---|---|
add, finalizeHandle, get, getId, getSerialHost, remove |
Field Detail |
---|
protected final java.util.Map localNodes
protected final java.util.Map remoteHosts
protected final java.util.HashMap remoteNodes
Constructor Detail |
---|
LocalHost()
Method Detail |
---|
public void connect(LocalNode node)
public void connectRemoteNode(java.util.UUID nodeId, SerialContext host, Actor mainActor)
public void disconnect(LocalNode node)
node
- local node
public void disconnect()
public void disconnectRemoteNode(java.util.UUID nodeId)
@java.lang.Override} public SerialContext getSerialHost(java.util.UUID hostId, java.lang.Object attachment)
public void onDisconnect(SerialContext host)
private void onDisconnectForLocalNodes(RemoteNode t)
Copyright © 2008–2013 Václav Pech. All Rights Reserved.