groovyx.gpars.remote
Class RemoteConnection

java.lang.Object
  extended by groovyx.gpars.remote.RemoteConnection
Direct Known Subclasses:
NettyRemoteConnection

public abstract class RemoteConnection
extends java.lang.Object

Represents connection to remote host

Author:
Alex Tkachman

Field Summary
private  RemoteHost host
           
private  LocalHost localHost
           
 
Constructor Summary
protected RemoteConnection(LocalHost provider)
           
 
Method Summary
abstract  void disconnect()
           
 RemoteHost getHost()
           
 void onConnect()
           
 void onDisconnect()
           
 void onException(java.lang.Throwable cause)
           
 void onMessage(SerialMsg msg)
           
 void setHost(RemoteHost host)
           
abstract  void write(SerialMsg msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localHost

private final LocalHost localHost

host

private RemoteHost host
Constructor Detail

RemoteConnection

protected RemoteConnection(LocalHost provider)
Method Detail

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()

Copyright © 2008–2012 Václav Pech. All Rights Reserved.