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
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.util.UUID, LocalNode> |
localNodes |
Local nodes known to the provider |
protected java.util.Map<java.util.UUID, RemoteHost> |
remoteHosts |
Hosts known to the provider |
protected java.util.HashMap<java.util.UUID, RemoteNode> |
remoteNodes |
Registry of remote nodes known to the provider |
Fields inherited from class | Fields |
---|---|
class SerialHandles |
id, localHandles |
Constructor and description |
---|
LocalHost
() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
connect(LocalNode node) Connect local node to the provider |
|
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 | Name |
---|---|
class SerialHandles |
add, finalizeHandle, get, getId, getSerialHost, remove |
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Local nodes known to the provider
Hosts known to the provider
Registry of remote nodes known to the provider
Connect local node to the provider
node
- local nodeDisconnect local node from the provider
node
- local nodeCopyright © 2008–2013 Václav Pech. All Rights Reserved.