|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.PastryNode
rice.pastry.dist.DistPastryNode
rice.pastry.rmi.RMIPastryNode
An RMI-exported Pastry node. Its remote interface is exported over RMI.
Field Summary |
Fields inherited from class rice.pastry.dist.DistPastryNode |
leafSetMaintFreq, routeSetMaintFreq |
Fields inherited from class rice.pastry.PastryNode |
apps, localhandle, myNodeId |
Constructor Summary | |
RMIPastryNode(NodeId id)
Constructor |
Method Summary | |
void |
doneNode(NodeHandle bootstrap)
Called after the node is initialized. |
void |
enqueueSendMsg(Message msg,
RMINodeHandle handle)
Enqueues a message for asynchronous transmission |
DistNodeHandlePool |
getNodeHandlePool()
accessor method for RMI handle pool. |
RouteSet[] |
getRouteRow(int row)
Returns the given row of the routing table |
void |
kill()
Testing purposes only! |
void |
nodeIsReady()
Called from PastryNode when the join succeeds, whereupon it rebinds the node into the RMI registry. |
void |
remoteReceiveMessage(Message msg,
NodeId hopDest)
Proxies to the local node to accept a message. |
void |
setRMIElements(rice.pastry.rmi.RMINodeHandlePool hp,
int p,
int lsmf,
int rsmf)
accessor method for elements in RMIPastryNode, called by RMIPastryNodeFactory. |
Methods inherited from class rice.pastry.dist.DistPastryNode |
initiateJoin, scheduleMsg, scheduleMsg, scheduleMsgAtFixedRate |
Methods inherited from class rice.pastry.PastryNode |
addLeafSetObserver, addRouteSetObserver, deleteLeafSetObserver, deleteRouteSetObserver, getId, getIdFactory, getLeafSet, getLocalHandle, getMessageDispatch, getNodeId, getRoutingTable, isClosest, isReady, receiveMessage, registerApp, registerApplication, registerReceiver, setElements, setMessageDispatch, setReady, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface rice.pastry.rmi.RMIRemoteNodeI |
getLeafSet, getNodeId |
Constructor Detail |
public RMIPastryNode(NodeId id)
Method Detail |
public void setRMIElements(rice.pastry.rmi.RMINodeHandlePool hp, int p, int lsmf, int rsmf)
hp
- Node handle poolp
- RMIregistry portlsmf
- Leaf set maintenance frequency. 0 means never.rsmf
- Route set maintenance frequency. 0 means never.public DistNodeHandlePool getNodeHandlePool()
getNodeHandlePool
in class DistPastryNode
public RouteSet[] getRouteRow(int row)
getRouteRow
in interface RMIRemoteNodeI
public void doneNode(NodeHandle bootstrap)
doneNode
in class DistPastryNode
bootstrap
- The node which this node should boot off of.public final void nodeIsReady()
nodeIsReady
in class DistPastryNode
public void remoteReceiveMessage(Message msg, NodeId hopDest) throws java.rmi.RemoteException
remoteReceiveMessage
in interface RMIRemoteNodeI
msg
- the message
java.rmi.RemoteException
public void enqueueSendMsg(Message msg, RMINodeHandle handle)
msg
- the message (if msg == null, do a ping)handle
- the nodeHandle to which the message should be sentpublic void kill()
kill
in class DistPastryNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |