org.codehaus.gpars

groovyx.gpars.remote
[Java] 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

Authors:
Alex Tkachman


Field Summary
private java.util.ArrayList connections

 
Fields inherited from class SerialContext
hostId, localHost, threadContext
 
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 SerialContext
add, enter, finalizeHandle, get, get, getHostId, getLocalHostId, getSerialHost, leave, remove, write
 
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

connections

private final java.util.ArrayList connections


 
Constructor Detail

RemoteHost

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


 
Method Detail

addConnection

public void addConnection(RemoteConnection connection)


connect

public void connect(LocalNode node)


disconnect

public void disconnect()


disconnect

public void disconnect(LocalNode node)


getConnection

public RemoteConnection getConnection()


getLocalHost

public LocalHost getLocalHost()


isConnected

public boolean isConnected()


removeConnection

public void removeConnection(RemoteConnection connection)


write

@Override
public void write(SerialMsg msg)


 

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