rice.pastry.socket
Class SocketNodeHandlePool
java.lang.Object
|
+--rice.pastry.dist.DistNodeHandlePool
|
+--rice.pastry.socket.SocketNodeHandlePool
- public class SocketNodeHandlePool
- extends rice.pastry.dist.DistNodeHandlePool
A direct mimic to WireNodeHandlePool class.
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: SocketNodeHandlePool.java,v 1.2 2003/09/22 19:53:06 glchen Exp $
- Author:
- Guanling Chen, Alan Mislove
Method Summary |
rice.pastry.dist.DistNodeHandle |
coalesce(rice.pastry.dist.DistNodeHandle handle)
|
private void |
debug(java.lang.String s)
|
SocketNodeHandle |
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 |
handles
private java.util.HashMap handles
pastryNode
private SocketPastryNode pastryNode
SocketNodeHandlePool
public SocketNodeHandlePool(SocketPastryNode spn)
coalesce
public rice.pastry.dist.DistNodeHandle coalesce(rice.pastry.dist.DistNodeHandle handle)
- Specified by:
coalesce
in class rice.pastry.dist.DistNodeHandlePool
get
public SocketNodeHandle get(rice.pastry.NodeId nodeId)
debug
private void debug(java.lang.String s)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object