|
||||||||||
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 | |
void |
deliverMessage(Message msg,
PastryNode node)
Deliver message. |
DirectNodeHandle |
getClosest(NodeId nid)
|
TestRecord |
getTestRecord()
|
boolean |
isAlive(NodeId nid)
Checks to see if a node id is alive. |
int |
proximity(NodeId a,
NodeId b)
Determines proximity between two nodes. |
void |
registerNodeId(DirectNodeHandle nh)
Registers a node handle with the simulator. |
void |
setAlive(NodeId nid,
boolean alive)
|
void |
setTestRecord(TestRecord tr)
|
boolean |
simulate()
Simulate one message delivery. |
Method Detail |
public void registerNodeId(DirectNodeHandle nh)
nh
- the node handle to register.public boolean isAlive(NodeId nid)
nid
- a node id.
public int proximity(NodeId a, NodeId b)
a
- a node id.b
- another node id.
public void deliverMessage(Message msg, PastryNode node)
msg
- message to deliver.node
- the Pastry node to deliver it to.public boolean simulate()
public void setTestRecord(TestRecord tr)
public TestRecord getTestRecord()
public DirectNodeHandle getClosest(NodeId nid)
public void setAlive(NodeId nid, boolean alive)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |