|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.client.PastryAppl
rice.pastry.testing.Ping
public class 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, logger, thePastryNode |
| Constructor Summary | |
|---|---|
Ping(PastryNode pn)
|
|
| Method Summary | |
|---|---|
boolean |
enrouteMessage(Message msg,
Id from,
NodeHandle nextHop,
SendOptions opt)
Called by pastry when a message is enroute and is passing through this node. |
Address |
getAddress()
Returns the address of this application. |
Credentials |
getCredentials()
Returns the credentials of this application. |
void |
leafSetChange(NodeHandle nh,
boolean wasAdded)
Called by pastry when the leaf set changes. |
void |
messageForAppl(Message msg)
Called by pastry when a message arrives for this application. |
void |
routeSetChange(NodeHandle nh,
boolean wasAdded)
Called by pastry when the route set changes. |
void |
sendPing(NodeId nid)
|
| Methods inherited from class rice.pastry.client.PastryAppl |
|---|
deliverWhenNotReady, destroy, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, notifyReady, receiveMessage, register, 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(PastryNode pn)
| Method Detail |
|---|
public Address getAddress()
PastryAppl
getAddress in class PastryAppl
public Credentials getCredentials()
PastryAppl
getCredentials in class PastryAppl
public void sendPing(NodeId nid)
public void messageForAppl(Message msg)
PastryAppl
messageForAppl in class PastryAppl
msg - the message that is arriving.
public boolean enrouteMessage(Message msg,
Id from,
NodeHandle nextHop,
SendOptions opt)
PastryAppl
enrouteMessage in class PastryAppl
msg - 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(NodeHandle nh,
boolean wasAdded)
PastryAppl
leafSetChange in class PastryAppl
nh - 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(NodeHandle nh,
boolean wasAdded)
PastryAppl
routeSetChange in class PastryAppl
nh - the handle of the node that was added or removed.wasAdded - true if the node was added, false if the node was removed.
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||