|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.testing.PastryRegrTest
public abstract class PastryRegrTest
PastryRegrTest a regression test suite for pastry. abstract class.
Field Summary | |
---|---|
protected Environment |
environment
|
protected PastryNodeFactory |
factory
|
boolean |
inConcJoin
|
Id.Distance |
lastDist
|
Message |
lastMsg
|
Id |
lastNode
|
java.util.Vector |
pastryNodes
|
java.util.Vector |
pastryNodesLastAdded
|
java.util.SortedMap |
pastryNodesSorted
of Id |
java.util.SortedMap |
pastryNodesSortedReady
|
Constructor Summary | |
---|---|
protected |
PastryRegrTest(Environment env)
constructor |
Method Summary | |
---|---|
protected void |
checkRoutingTable(RegrTestApp rta)
verify the correctness of the routing table |
protected PastryNode |
generateNode(NodeHandle bootstrap)
|
protected abstract NodeHandle |
getBootstrap(boolean firstNode)
get a node handle to bootstrap from. |
protected abstract boolean |
isReallyAlive(NodeHandle nh)
determine whether this node is really alive. |
protected abstract void |
killNode(PastryNode pn)
kill a given node. |
protected static void |
mainfunc(PastryRegrTest pt,
java.lang.String[] args,
int n,
int d,
int k,
int m,
int numConcJoins)
main |
abstract void |
pause(int ms)
|
protected abstract void |
registerapp(PastryNode pn,
RegrTestApp app)
wire protocol specific handling of the application object e.g., RMI may launch a new thread |
void |
sendPings(int k)
Send messages among random message pairs. |
protected abstract boolean |
simulate()
send one simulated message, or return false for a real wire protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PastryNodeFactory factory
public java.util.Vector pastryNodes
public java.util.SortedMap pastryNodesSorted
public java.util.SortedMap pastryNodesSortedReady
public java.util.Vector pastryNodesLastAdded
public boolean inConcJoin
public Message lastMsg
public Id.Distance lastDist
public Id lastNode
protected Environment environment
Constructor Detail |
---|
protected PastryRegrTest(Environment env)
Method Detail |
---|
protected abstract NodeHandle getBootstrap(boolean firstNode)
protected abstract void registerapp(PastryNode pn, RegrTestApp app)
pn
- pastry nodeapp
- newly created applicationprotected abstract boolean simulate()
protected abstract boolean isReallyAlive(NodeHandle nh)
protected abstract void killNode(PastryNode pn)
protected PastryNode generateNode(NodeHandle bootstrap)
public abstract void pause(int ms)
public void sendPings(int k)
k
- the number of roundsprotected void checkRoutingTable(RegrTestApp rta)
protected static void mainfunc(PastryRegrTest pt, java.lang.String[] args, int n, int d, int k, int m, int numConcJoins)
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |