groovyx.gpars.remote
Class RemoteHost
java.lang.Object
groovyx.gpars.serial.SerialContext
groovyx.gpars.remote.RemoteHost
public final class RemoteHost
- extends SerialContext
Representation of remote host connected to transport provider
- Author:
- Alex Tkachman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connections
private final java.util.ArrayList<RemoteConnection> connections
RemoteHost
public RemoteHost(LocalHost localHost,
java.util.UUID hostId)
addConnection
public void addConnection(RemoteConnection connection)
removeConnection
public void removeConnection(RemoteConnection connection)
disconnect
public void disconnect()
isConnected
public boolean isConnected()
write
public void write(SerialMsg msg)
- Specified by:
write
in class SerialContext
getConnection
public RemoteConnection getConnection()
connect
public void connect(LocalNode node)
disconnect
public void disconnect(LocalNode node)
getLocalHost
public LocalHost getLocalHost()