rice.pastry.rmi
Class RMINodeHandlePool
- class RMINodeHandlePool
- extends rice.pastry.dist.DistNodeHandlePool
- Maintains a pool of RMINodeHandles and implements the coalescing logic.
- Version:
- $Id: RMINodeHandlePool.java,v 1.7 2002/08/09 06:28:26 ssiyer Exp $
- Author:
- Sitaram Iyer
RMINodeHandlePool
public RMINodeHandlePool()
- Constructor
coalesce
public rice.pastry.dist.DistNodeHandle coalesce(rice.pastry.dist.DistNodeHandle nodehandle)
- Adds a RMINodeHandle to the pool if another with the same NodeId isn't found.
- Parameters:
handle
- the node handle to coalesce into pool.
- Returns:
- either handle, or a handle from the pool with same NodeId.
activate
public void activate(rice.pastry.NodeId nid)
- If given NodeId has a NodeHandle in the pool, then the latter is marked alive.
- Parameters:
nid
- the node nid of the handle to lookup and mark alive.