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
 

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

@java.lang.Override
public void write(SerialMsg msg)


 

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