|
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 |
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 |
---|
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–2010 Václav Pech. All Rights Reserved.