|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
rice.pastry.PastryNode
rice.pastry.direct.DirectPastryNode
Direct pastry node. Subclasses PastryNode, and does about nothing else.
Field Summary | |
protected Timer |
timer
DESCRIBE THE FIELD |
Fields inherited from class rice.pastry.PastryNode |
apps, EC_NO_CODE_AVAILABLE, localhandle, myNodeId, nodeHandleSet |
Constructor Summary | |
DirectPastryNode(NodeId id,
NetworkSimulator sim)
Constructor for DirectPastryNode. |
Method Summary | |
void |
doneNode(NodeHandle bootstrap)
DESCRIBE THE METHOD |
void |
initiateJoin(NodeHandle bootstrap)
Sends an InitiateJoin message to itself. |
void |
nodeIsReady()
Called from PastryNode after 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. |
void |
setDirectElements()
Sets the DirectElements attribute of the DirectPastryNode object |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Timer timer
Constructor Detail |
public DirectPastryNode(NodeId id, NetworkSimulator sim)
id
- DESCRIBE THE PARAMETERsim
- DESCRIBE THE PARAMETERMethod Detail |
public void setDirectElements()
public void doneNode(NodeHandle bootstrap)
bootstrap
- DESCRIBE THE PARAMETERpublic final void initiateJoin(NodeHandle bootstrap)
initiateJoin
in class PastryNode
bootstrap
- Node handle to bootstrap with.public final void nodeIsReady()
nodeIsReady
in class PastryNode
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
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |