org.codehaus.gpars

groovyx.gpars.remote
[Java] Class RemoteConnection

java.lang.Object
  groovyx.gpars.remote.RemoteConnection

public abstract class RemoteConnection
extends java.lang.Object

Represents connection to remote host

Authors:
Alex Tkachman


Field Summary
private RemoteHost host

private LocalHost localHost

 
Constructor Summary
protected RemoteConnection(LocalHost provider)

 
Method Summary
void disconnect()

RemoteHost getHost()

void onConnect()

void onDisconnect()

void onException(java.lang.Throwable cause)

void onMessage(SerialMsg msg)

void setHost(RemoteHost host)

void write(SerialMsg msg)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), 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()
 

Field Detail

host

private RemoteHost host


localHost

private final LocalHost localHost


 
Constructor Detail

RemoteConnection

protected RemoteConnection(LocalHost provider)


 
Method Detail

disconnect

public void disconnect()


getHost

public RemoteHost getHost()


onConnect

public void onConnect()


onDisconnect

public void onDisconnect()


onException

public void onException(java.lang.Throwable cause)


onMessage

public void onMessage(SerialMsg msg)


setHost

public void setHost(RemoteHost host)


write

public void write(SerialMsg msg)


 

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