rice.pastry.wire
Class WireNodeHandlePool

public class WireNodeHandlePool
extends rice.pastry.dist.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
Constructor Detail

WireNodeHandlePool

public WireNodeHandlePool(rice.pastry.wire.WirePastryNode spn)
Constructor.
Parameters:
spn - The WirePastryNode this pool will serve.

Method Detail

coalesce

public synchronized 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.
Parameters:
handle - The node handle to verify.
Returns:
The node handle to use to talk to the pastry node.