groovyx.gpars.remote
Class RemoteHost

java.lang.Object
  extended by groovyx.gpars.serial.SerialContext
      extended by groovyx.gpars.remote.RemoteHost

public final class RemoteHost
extends SerialContext

Representation of remote host connected to transport provider

Author:
Alex Tkachman

Field Summary
private  java.util.ArrayList<RemoteConnection> connections
           
 
Fields inherited from class groovyx.gpars.serial.SerialContext
hostId, localHost
 
Constructor Summary
RemoteHost(LocalHost localHost, java.util.UUID hostId)
           
 
Method Summary
 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)
           
 
Methods inherited from class groovyx.gpars.serial.SerialContext
add, enter, finalizeHandle, get, get, getHostId, getLocalHostId, getSerialHost, leave, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connections

private final java.util.ArrayList<RemoteConnection> connections
Constructor Detail

RemoteHost

public RemoteHost(LocalHost localHost,
                  java.util.UUID hostId)
Method Detail

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

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