groovyx.gpars.serial
Class SerialHandles
java.lang.Object
groovyx.gpars.serial.SerialHandles
- Direct Known Subclasses:
- LocalHost
public abstract class SerialHandles
- extends java.lang.Object
- Author:
- Alex Tkachman
Field Summary |
protected java.util.UUID |
id
Unique id of the provider |
private java.util.HashMap<java.util.UUID,SerialHandle> |
localHandles
Table of local objects serialized out to remote nodes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected final java.util.UUID id
- Unique id of the provider
localHandles
private final java.util.HashMap<java.util.UUID,SerialHandle> localHandles
- Table of local objects serialized out to remote nodes
SerialHandles
public SerialHandles()
getId
public java.util.UUID getId()
- Getter for provider id
- Returns:
- unique id
add
public void add(SerialHandle handle)
remove
public void remove(SerialHandle handle)
get
public SerialHandle get(java.util.UUID id)
finalizeHandle
public void finalizeHandle(SerialHandle handle)
getSerialHost
public abstract SerialContext getSerialHost(java.util.UUID hostId,
java.lang.Object attachment)