|
Rice Pastry 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.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, deserializer, instance, logger, receiver, thePastryNode |
| Constructor Summary | |
|---|---|
RegrTestApp(PastryNode pn,
PastryRegrTest prg)
|
|
| Method Summary | |
|---|---|
void |
deliver(Id key,
Message msg)
Makes sure the message was delivered to the correct node by crossrefrencing the sorted nodes list in the simulator. |
void |
forward(RouteMessage rm)
Called by pastry when a message is enroute and is passing through this node. |
int |
getAddress()
Returns the address 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(Id nid)
|
void |
sendTrace(Id 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 |
|---|
accept, connect, deliverWhenNotReady, destroy, enrouteMessage, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, receiveMessageInternal, receiveSocket, register, routeMsg, routeMsgDirect, setDeserializer |
| 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 int getAddress()
PastryAppl
getAddress in class PastryApplpublic void sendMsg(Id nid)
public void sendTrace(Id nid)
public void deliver(Id key,
Message msg)
deliver in class CommonAPIApplmsg - the message that is arriving.public void forward(RouteMessage rm)
CommonAPIAppl
forward in class CommonAPIApplrm - the message that is passing through.
public void update(NodeHandle nh,
boolean wasAdded)
CommonAPIAppl
update in class CommonAPIApplnh - the handle of the node that was added or removed.
public void routeSetChange(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.public void notifyReady()
notifyReady in class CommonAPIApplpublic PastryNode getPastryNode()
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||