|
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
PastryRegrTest a regression test suite for pastry. abstract class.
Field Summary | |
protected Environment |
environment
DESCRIBE THE FIELD |
protected PastryNodeFactory |
factory
DESCRIBE THE FIELD |
boolean |
inConcJoin
DESCRIBE THE FIELD |
Id.Distance |
lastDist
DESCRIBE THE FIELD |
Message |
lastMsg
DESCRIBE THE FIELD |
Id |
lastNode
DESCRIBE THE FIELD |
java.util.Vector |
pastryNodes
DESCRIBE THE FIELD |
java.util.Vector |
pastryNodesLastAdded
DESCRIBE THE FIELD |
java.util.SortedMap |
pastryNodesSorted
of Id |
java.util.SortedMap |
pastryNodesSortedReady
DESCRIBE THE FIELD |
Constructor Summary | |
protected |
PastryRegrTest(Environment env)
constructor |
Method Summary | |
protected PastryNode |
generateNode(NodeHandle bootstrap)
DESCRIBE THE METHOD |
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)
DESCRIBE THE METHOD |
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)
env
- DESCRIBE THE PARAMETERMethod Detail |
protected abstract NodeHandle getBootstrap(boolean firstNode)
firstNode
- DESCRIBE THE PARAMETER
protected abstract boolean isReallyAlive(NodeHandle nh)
nh
- DESCRIBE THE PARAMETER
protected abstract void registerapp(PastryNode pn, RegrTestApp app)
pn
- pastry nodeapp
- newly created applicationprotected abstract boolean simulate()
protected abstract void killNode(PastryNode pn)
pn
- DESCRIBE THE PARAMETERprotected PastryNode generateNode(NodeHandle bootstrap)
bootstrap
- DESCRIBE THE PARAMETER
public abstract void pause(int ms)
ms
- DESCRIBE THE PARAMETERpublic void sendPings(int k)
k
- the number of roundsprotected static void mainfunc(PastryRegrTest pt, java.lang.String[] args, int n, int d, int k, int m, int numConcJoins)
pt
- DESCRIBE THE PARAMETERargs
- DESCRIBE THE PARAMETERn
- DESCRIBE THE PARAMETERd
- DESCRIBE THE PARAMETERk
- DESCRIBE THE PARAMETERm
- DESCRIBE THE PARAMETERnumConcJoins
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |