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