groovyx.gpars.remote
Class RemoteConnection
java.lang.Object
groovyx.gpars.remote.RemoteConnection
- Direct Known Subclasses:
- NettyRemoteConnection
public abstract class RemoteConnection
- extends java.lang.Object
Represents connection to remote host
- Author:
- Alex Tkachman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
localHost
private final LocalHost localHost
host
private RemoteHost host
RemoteConnection
protected RemoteConnection(LocalHost provider)
onMessage
public void onMessage(SerialMsg msg)
onException
public void onException(java.lang.Throwable cause)
onConnect
public void onConnect()
onDisconnect
public void onDisconnect()
write
public abstract void write(SerialMsg msg)
getHost
public RemoteHost getHost()
setHost
public void setHost(RemoteHost host)
disconnect
public abstract void disconnect()