|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to an object which is simulating the network.
Method Summary | |
ScheduledMessage |
deliverMessage(Message msg,
DirectPastryNode node)
Deliver message ASAP. |
ScheduledMessage |
deliverMessage(Message msg,
DirectPastryNode node,
int delay)
Deliver message. |
ScheduledMessage |
deliverMessage(Message msg,
DirectPastryNode node,
int delay,
int period)
Deliver message. |
ScheduledMessage |
deliverMessageFixedRate(Message msg,
DirectPastryNode node,
int delay,
int period)
Deliver message. |
void |
destroy(DirectPastryNode dpn)
DESCRIBE THE METHOD |
CancellableTask |
enqueueDelivery(Delivery del)
Deliver message. |
NodeRecord |
generateNodeRecord()
Generates a random node record |
DirectNodeHandle |
getClosest(DirectNodeHandle nh)
Returns the closest Node in proximity. |
Environment |
getEnvironment()
Gets the Environment attribute of the NetworkSimulator object |
TestRecord |
getTestRecord()
Gets the TestRecord attribute of the NetworkSimulator object |
boolean |
isAlive(DirectNodeHandle nh)
Checks to see if a node id is alive. |
int |
proximity(DirectNodeHandle a,
DirectNodeHandle b)
Determines proximity between two nodes. |
void |
registerNode(DirectPastryNode dpn)
Registers a node handle with the simulator. |
void |
removeNode(DirectPastryNode node)
DESCRIBE THE METHOD |
void |
setTestRecord(TestRecord tr)
Sets the TestRecord attribute of the NetworkSimulator object |
void |
start()
DESCRIBE THE METHOD |
void |
stop()
DESCRIBE THE METHOD |
Method Detail |
public Environment getEnvironment()
public void registerNode(DirectPastryNode dpn)
dpn
- DESCRIBE THE PARAMETERpublic boolean isAlive(DirectNodeHandle nh)
nh
- DESCRIBE THE PARAMETER
public int proximity(DirectNodeHandle a, DirectNodeHandle b)
a
- a node id.b
- another node id.
public ScheduledMessage deliverMessage(Message msg, DirectPastryNode node, int delay)
msg
- message to deliver.node
- the Pastry node to deliver it to.delay
- DESCRIBE THE PARAMETER
public ScheduledMessage deliverMessage(Message msg, DirectPastryNode node, int delay, int period)
msg
- message to deliver.node
- the Pastry node to deliver it to.period
- to deliver the message after the delaydelay
- DESCRIBE THE PARAMETER
public ScheduledMessage deliverMessageFixedRate(Message msg, DirectPastryNode node, int delay, int period)
msg
- message to deliver.node
- the Pastry node to deliver it to.period
- to deliver the message after the delaydelay
- DESCRIBE THE PARAMETER
public ScheduledMessage deliverMessage(Message msg, DirectPastryNode node)
msg
- message to deliver.node
- the Pastry node to deliver it to.
public void setTestRecord(TestRecord tr)
tr
- The new TestRecord valuepublic TestRecord getTestRecord()
public DirectNodeHandle getClosest(DirectNodeHandle nh)
nh
- DESCRIBE THE PARAMETER
public void destroy(DirectPastryNode dpn)
dpn
- DESCRIBE THE PARAMETERpublic NodeRecord generateNodeRecord()
public void removeNode(DirectPastryNode node)
node
- DESCRIBE THE PARAMETERpublic void start()
public void stop()
public CancellableTask enqueueDelivery(Delivery del)
del
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |