Rice Pastry API

rice.pastry.dist
Class DistNodeHandlePool

java.lang.Object
  |
  +--rice.pastry.dist.DistNodeHandlePool
Direct Known Subclasses:
WireNodeHandlePool

public abstract class DistNodeHandlePool
extends java.lang.Object

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.

Version:
$Id: DistNodeHandlePool.java,v 1.1 2002/07/23 15:56:21 amislove Exp $
Author:
Alan Mislove

Constructor Summary
DistNodeHandlePool()
          Constructor.
 
Method Summary
abstract  rice.pastry.dist.DistNodeHandle coalesce(rice.pastry.dist.DistNodeHandle handle)
          The method verifies a DistNodeHandle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistNodeHandlePool

public DistNodeHandlePool()
Constructor.

Method Detail

coalesce

public abstract rice.pastry.dist.DistNodeHandle coalesce(rice.pastry.dist.DistNodeHandle handle)
The method verifies a DistNodeHandle. 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.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection