|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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 |
---|
private final java.util.ArrayList connections
Constructor Detail |
---|
public RemoteHost(LocalHost localHost, java.util.UUID hostId)
Method Detail |
---|
public void addConnection(RemoteConnection connection)
public void connect(LocalNode node)
public void disconnect()
public void disconnect(LocalNode node)
public RemoteConnection getConnection()
public LocalHost getLocalHost()
public boolean isConnected()
public void removeConnection(RemoteConnection connection)
@Override public void write(SerialMsg msg)
Copyright © 2008–2012 Václav Pech. All Rights Reserved.