rice.pastry.wire
Class WireNodeHandlePool
java.lang.Object
|
+--rice.pastry.dist.DistNodeHandlePool
|
+--rice.pastry.wire.WireNodeHandlePool
- public class WireNodeHandlePool
- extends DistNodeHandlePool
The WireNodeHandlePool controls all of the node handles in
use by the WirePastryNode. It ensures that there is only one
node handle for each respective pastry node.
- Version:
- $Id: WireNodeHandlePool.java,v 1.5 2002/09/09 01:19:48 amislove Exp $
- Author:
- Alan Mislove
Method Summary |
rice.pastry.dist.DistNodeHandle |
coalesce(rice.pastry.dist.DistNodeHandle handle)
The method verifies a WireNodeHandle. |
rice.pastry.wire.WireNodeHandle |
get(rice.pastry.NodeId nodeId)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WireNodeHandlePool
public WireNodeHandlePool(rice.pastry.wire.WirePastryNode spn)
- Constructor.
- Parameters:
spn
- The WirePastryNode this pool will serve.
coalesce
public rice.pastry.dist.DistNodeHandle coalesce(rice.pastry.dist.DistNodeHandle handle)
- The method verifies a WireNodeHandle. If a node handle
to the pastry node has never been seen before, an entry is
added, and this node handle is referred to in the future.
Otherwise, this method returns the previously verified
node handle to the pastry node.
- Specified by:
coalesce
in class DistNodeHandlePool
- Parameters:
handle
- The node handle to verify.
- Returns:
- The node handle to use to talk to the pastry node.
get
public rice.pastry.wire.WireNodeHandle get(rice.pastry.NodeId nodeId)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001 - Rice Pastry.