|
||||||||||
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
Class which represents the abstraction of a "real" pastry node. Designed to be extended by the protocol implementation (i.e. RMI or Socket) desired.
Field Summary | |
protected int |
leafSetMaintFreq
|
protected int |
routeSetMaintFreq
|
Fields inherited from class rice.pastry.PastryNode |
apps, localhandle, myNodeId |
Constructor Summary | |
protected |
DistPastryNode(NodeId id)
Constructor, with NodeId. |
Method Summary | |
void |
doneNode(NodeHandle bootstrap)
Called after the node is initialized. |
abstract DistNodeHandlePool |
getNodeHandlePool()
Method which returns the Dist for this Pastry node. |
void |
initiateJoin(NodeHandle bootstrap)
Sends an InitiateJoin message to itself. |
void |
kill()
Method which kills a PastryNode (used only for testing). |
void |
nodeIsReady()
Called from PastryNode when the join succeeds. |
ScheduledMessage |
scheduleMsg(Message msg,
long delay)
Schedule the specified message to be sent to the local node after a specified delay. |
ScheduledMessage |
scheduleMsg(Message msg,
long delay,
long period)
Schedule the specified message for repeated fixed-delay delivery to the local node, beginning after the specified delay. |
ScheduledMessage |
scheduleMsgAtFixedRate(Message msg,
long delay,
long period)
Schedule the specified message for repeated fixed-rate delivery to the local node, beginning after the specified delay. |
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 |
Field Detail |
protected int leafSetMaintFreq
protected int routeSetMaintFreq
Constructor Detail |
protected DistPastryNode(NodeId id)
Method Detail |
public abstract DistNodeHandlePool getNodeHandlePool()
public final void initiateJoin(NodeHandle bootstrap)
initiateJoin
in class PastryNode
bootstrap
- Node handle to bootstrap with.public void nodeIsReady()
nodeIsReady
in class PastryNode
public void doneNode(NodeHandle bootstrap)
public void kill()
public ScheduledMessage scheduleMsg(Message msg, long delay)
scheduleMsg
in class PastryNode
msg
- a message that will be delivered to the local node after the specified delaydelay
- time in milliseconds before message is to be delivered
public ScheduledMessage scheduleMsg(Message msg, long delay, long period)
scheduleMsg
in class PastryNode
msg
- a message that will be delivered to the local node after the specified delaydelay
- time in milliseconds before message is to be deliveredperiod
- time in milliseconds between successive message deliveries
public ScheduledMessage scheduleMsgAtFixedRate(Message msg, long delay, long period)
scheduleMsgAtFixedRate
in class PastryNode
msg
- a message that will be delivered to the local node after the specified delaydelay
- time in milliseconds before message is to be deliveredperiod
- time in milliseconds between successive message deliveries
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |