groovyx.gpars.serial
Class SerialHandles

java.lang.Object
  extended by 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
 
Constructor Summary
SerialHandles()
           
 
Method Summary
 void add(SerialHandle handle)
           
 void finalizeHandle(SerialHandle handle)
           
 SerialHandle get(java.util.UUID id)
           
 java.util.UUID getId()
          Getter for provider id
abstract  SerialContext getSerialHost(java.util.UUID hostId, java.lang.Object attachment)
           
 void remove(SerialHandle handle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

SerialHandles

public SerialHandles()
Method Detail

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)

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