public final class RemoteHost extends SerialContext
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<RemoteConnection> |
connections |
hostId, localHost
Constructor and Description |
---|
RemoteHost(LocalHost localHost,
java.util.UUID hostId) |
Modifier and Type | Method and Description |
---|---|
void |
addConnection(RemoteConnection connection) |
void |
connect(LocalNode node) |
void |
disconnect() |
void |
disconnect(LocalNode node) |
RemoteConnection |
getConnection() |
LocalHost |
getLocalHost() |
boolean |
isConnected() |
void |
removeConnection(RemoteConnection connection) |
void |
write(SerialMsg msg) |
add, enter, finalizeHandle, get, get, getHostId, getLocalHostId, getSerialHost, leave, remove
private final java.util.ArrayList<RemoteConnection> connections
public RemoteHost(LocalHost localHost, java.util.UUID hostId)
public void addConnection(RemoteConnection connection)
public void removeConnection(RemoteConnection connection)
public void disconnect()
public boolean isConnected()
public void write(SerialMsg msg)
write
in class SerialContext
public RemoteConnection getConnection()
public void connect(LocalNode node)
public void disconnect(LocalNode node)
public LocalHost getLocalHost()