rice.pastry.rmi
Class RMIPastryNode
- public class RMIPastryNode
- extends rice.pastry.dist.DistPastryNode
- implements rice.pastry.rmi.RMIRemoteNodeI
- An RMI-exported Pastry node. Its remote interface is exported over RMI.
- Version:
- $Id: RMIPastryNode.java,v 1.29 2002/09/12 05:51:41 druschel Exp $
- Author:
- Sitaram Iyer
RMIPastryNode
public RMIPastryNode(rice.pastry.NodeId id)
- Constructor
setRMIElements
public void setRMIElements(rice.pastry.rmi.RMINodeHandlePool hp,
int p,
int lsmf,
int rsmf)
- accessor method for elements in RMIPastryNode, called by RMIPastryNodeFactory.
- Parameters:
hp
- Node handle pool
p
- RMIregistry port
lsmf
- Leaf set maintenance frequency. 0 means never.
rsmf
- Route set maintenance frequency. 0 means never.
getNodeHandlePool
public rice.pastry.dist.DistNodeHandlePool getNodeHandlePool()
- accessor method for RMI handle pool.
- Returns:
- handle pool
doneNode
public void doneNode(rice.pastry.NodeHandle bootstrap)
- Called after the node is initialized.
- Parameters:
bootstrap
- The node which this node should boot off of.
nodeIsReady
protected final void nodeIsReady()
- Called from PastryNode when the join succeeds, whereupon it rebinds the node into the RMI registry. Happens after the registry lookup, so the node never ends up discovering itself.
remoteReceiveMessage
public void remoteReceiveMessage(rice.pastry.messaging.Message msg)
- Proxies to the local node to accept a message. For synchronization purposes, it only adds the message to the queue and signals the message handler thread.
kill
public void kill()
- Testing purposes only!