|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NetworkSimulator
Interface to an object which is simulating the network.
| Method Detail |
|---|
Environment getEnvironment()
void registerNode(DirectPastryNode dpn)
nh - the node handle to register.boolean isAlive(DirectNodeHandle nh)
nid - a node id.
int proximity(DirectNodeHandle a,
DirectNodeHandle b)
a - a node id.b - another node id.
ScheduledMessage deliverMessage(Message msg,
DirectPastryNode node,
int delay)
msg - message to deliver.node - the Pastry node to deliver it to.how - long to delay to deliver the message
ScheduledMessage deliverMessage(Message msg,
DirectPastryNode node,
int delay,
int period)
msg - message to deliver.node - the Pastry node to deliver it to.how - long to delay to deliver the messageperiod - to deliver the message after the delay
ScheduledMessage deliverMessageFixedRate(Message msg,
DirectPastryNode node,
int delay,
int period)
msg - message to deliver.node - the Pastry node to deliver it to.how - long to delay to deliver the messageperiod - to deliver the message after the delay
ScheduledMessage deliverMessage(Message msg,
DirectPastryNode node)
msg - message to deliver.node - the Pastry node to deliver it to.void setTestRecord(TestRecord tr)
TestRecord getTestRecord()
DirectNodeHandle getClosest(DirectNodeHandle nh)
nid -
void destroy(DirectPastryNode dpn)
NodeRecord generateNodeRecord()
void removeNode(DirectPastryNode node)
void start()
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||