|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--rice.pastry.client.PastryAppl
|
+--rice.pastry.testing.Ping
Ping A performance test suite for pastry. This is the per-node app object.
| Field Summary |
| Fields inherited from class rice.pastry.client.PastryAppl |
address, instance, thePastryNode |
| Constructor Summary | |
Ping(rice.pastry.PastryNode pn)
|
|
| Method Summary | |
boolean |
enrouteMessage(rice.pastry.messaging.Message msg,
rice.pastry.Id from,
rice.pastry.NodeId nextHop,
rice.pastry.routing.SendOptions opt)
Called by pastry when a message is enroute and is passing through this node. |
rice.pastry.messaging.Address |
getAddress()
Returns the address of this application. |
rice.pastry.security.Credentials |
getCredentials()
Returns the credentials of this application. |
void |
leafSetChange(rice.pastry.NodeHandle nh,
boolean wasAdded)
Called by pastry when the leaf set changes. |
void |
messageForAppl(rice.pastry.messaging.Message msg)
Called by pastry when a message arrives for this application. |
void |
routeSetChange(rice.pastry.NodeHandle nh,
boolean wasAdded)
Called by pastry when the route set changes. |
void |
sendPing(rice.pastry.NodeId nid)
|
| Methods inherited from class rice.pastry.client.PastryAppl |
getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, notifyReady, receiveMessage, registerReceiver, routeMsg, routeMsgDirect, sendMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Ping(rice.pastry.PastryNode pn)
| Method Detail |
public rice.pastry.messaging.Address getAddress()
PastryAppl
getAddress in class PastryApplpublic rice.pastry.security.Credentials getCredentials()
PastryAppl
getCredentials in class PastryApplpublic void sendPing(rice.pastry.NodeId nid)
public void messageForAppl(rice.pastry.messaging.Message msg)
PastryAppl
messageForAppl in class PastryApplmsg - the message that is arriving.
public boolean enrouteMessage(rice.pastry.messaging.Message msg,
rice.pastry.Id from,
rice.pastry.NodeId nextHop,
rice.pastry.routing.SendOptions opt)
PastryAppl
enrouteMessage in class PastryApplmsg - the message that is passing through.from - the keynextHop - the default next hop for the message.opt - the send options the message was sent with.
public void leafSetChange(rice.pastry.NodeHandle nh,
boolean wasAdded)
PastryAppl
leafSetChange in class PastryApplnh - the handle of the node that was added or removed.wasAdded - true if the node was added, false if the node was removed.
public void routeSetChange(rice.pastry.NodeHandle nh,
boolean wasAdded)
PastryAppl
routeSetChange in class PastryApplnh - the handle of the node that was added or removed.wasAdded - true if the node was added, false if the node was removed.
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||