|
ePOST 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.client.CommonAPIAppl rice.pastry.testing.RegrTestApp
public class RegrTestApp
RegrTestApp A regression 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 | |
---|---|
RegrTestApp(PastryNode pn,
PastryRegrTest prg)
|
Method Summary | |
---|---|
void |
deliver(Id key,
Message msg)
Called by pastry when a message arrives for this application. |
void |
forward(RouteMessage rm)
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. |
PastryNode |
getPastryNode()
|
void |
notifyReady()
Invoked when the Pastry node has joined the overlay network and is ready to send and receive messages |
void |
routeSetChange(NodeHandle nh,
boolean wasAdded)
Called by pastry when the route set changes. |
void |
sendMsg(NodeId nid)
|
void |
sendTrace(NodeId nid)
|
void |
update(NodeHandle nh,
boolean wasAdded)
Called by pastry when the neighbor set changes. |
Methods inherited from class rice.pastry.client.CommonAPIAppl |
---|
leafSetChange, localLookup, messageForAppl, neighborSet, range, range, receiveMessage, replicaSet, route |
Methods inherited from class rice.pastry.client.PastryAppl |
---|
deliverWhenNotReady, destroy, enrouteMessage, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, 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 RegrTestApp(PastryNode pn, PastryRegrTest prg)
Method Detail |
---|
public Address getAddress()
PastryAppl
getAddress
in class PastryAppl
public Credentials getCredentials()
CommonAPIAppl
getCredentials
in class CommonAPIAppl
public void sendMsg(NodeId nid)
public void sendTrace(NodeId nid)
public void deliver(Id key, Message msg)
CommonAPIAppl
deliver
in class CommonAPIAppl
msg
- the message that is arriving.public void forward(RouteMessage rm)
CommonAPIAppl
forward
in class CommonAPIAppl
rm
- the message that is passing through.public void update(NodeHandle nh, boolean wasAdded)
CommonAPIAppl
update
in class CommonAPIAppl
nh
- the handle of the node that was added or 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.public void notifyReady()
notifyReady
in class CommonAPIAppl
public PastryNode getPastryNode()
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |