|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.testing.PastryRegrTest
PastryRegrTest a regression test suite for pastry. abstract class.
Field Summary | |
protected PastryNodeFactory |
factory
|
boolean |
inConcJoin
|
Id.Distance |
lastDist
|
Message |
lastMsg
|
NodeId |
lastNode
|
java.util.Vector |
pastryNodes
|
java.util.Vector |
pastryNodesLastAdded
|
java.util.SortedMap |
pastryNodesSorted
|
Constructor Summary | |
protected |
PastryRegrTest()
constructor |
Method Summary | |
protected PastryNode |
generateNode(NodeHandle bootstrap)
|
protected abstract NodeHandle |
getBootstrap(boolean firstNode)
get a node handle to bootstrap from. |
protected abstract boolean |
isReallyAlive(NodeId id)
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.Vector pastryNodesLastAdded
public boolean inConcJoin
public Message lastMsg
public Id.Distance lastDist
public NodeId lastNode
Constructor Detail |
protected PastryRegrTest()
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(NodeId id)
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 static void mainfunc(PastryRegrTest pt, java.lang.String[] args, int n, int d, int k, int m, int numConcJoins)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |