|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.dist.DistNodeHandlePool
rice.pastry.socket.SocketNodeHandlePool
The DistNodeHandlePool controls all of the node handles in use by the DistPastryNode. It ensures that there is only one "active" node handle for each remote pastry node.
Field Summary | |
protected java.util.Hashtable |
handles
A mapping containing references to all of the handles in the system |
protected SocketPastryNode |
node
The node which this pool serves |
Constructor Summary | |
SocketNodeHandlePool(SocketPastryNode node)
Constructor. |
Method Summary | |
DistNodeHandle |
coalesce(DistNodeHandle handle)
The method verifies a DistNodeHandle. |
protected void |
record(SocketNodeHandle handle)
This method should be called by a newly constructed node handle, or by a handle which has just arrived at a new node. |
protected void |
update(EpochInetSocketAddress address,
java.lang.Object update)
This method updates all of the handles to the given address with the specified update. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected SocketPastryNode node
protected java.util.Hashtable handles
Constructor Detail |
public SocketNodeHandlePool(SocketPastryNode node)
node
- DESCRIBE THE PARAMETERMethod Detail |
public DistNodeHandle coalesce(DistNodeHandle handle)
coalesce
in class DistNodeHandlePool
handle
- The node handle to verify.
protected void record(SocketNodeHandle handle)
handle
- The newly created/deserialized handleprotected void update(EpochInetSocketAddress address, java.lang.Object update)
update
- The update to notify the handles ofaddress
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |