|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.testing.PastryRegrTest
rice.pastry.testing.DistPastryRegrTest
a regression test suite for pastry with "distributed" nodes. All nodes are on one physical machine, but they communicate through one of the network transport protocols, i.e., RMI or WIRE. See the usage for more information, the -protocol option can be used to specify which protocol to run the test with.
Field Summary |
Fields inherited from class rice.pastry.testing.PastryRegrTest |
factory, inConcJoin, lastDist, lastMsg, lastNode, pastryNodes, pastryNodesLastAdded, pastryNodesSorted |
Constructor Summary | |
DistPastryRegrTest()
|
Method Summary | |
protected NodeHandle |
getBootstrap(boolean firstNode)
Gets a handle to a bootstrap node. |
boolean |
isReallyAlive(NodeId id)
determine whether this node is really alive. |
protected void |
killNode(PastryNode pn)
kill a given node. |
static void |
main(java.lang.String[] args)
Usage: DistRegrPastryTest [-port p] [-protocol (wire|rmi)] [-nodes n] [-bootstrap host[:port]] [-help] |
void |
pause(int ms)
|
protected void |
registerapp(PastryNode pn,
RegrTestApp app)
wire protocol specific handling of the application object e.g., RMI may launch a new thread |
boolean |
simulate()
send one simulated message, or return false for a real wire protocol. |
Methods inherited from class rice.pastry.testing.PastryRegrTest |
generateNode, mainfunc, sendPings |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DistPastryRegrTest()
Method Detail |
protected NodeHandle getBootstrap(boolean firstNode)
getBootstrap
in class PastryRegrTest
firstNode
- true if bootstraping the first virtual node on this host
protected void registerapp(PastryNode pn, RegrTestApp app)
registerapp
in class PastryRegrTest
pn
- pastry nodeapp
- newly created applicationpublic boolean simulate()
PastryRegrTest
simulate
in class PastryRegrTest
public void pause(int ms)
pause
in class PastryRegrTest
public boolean isReallyAlive(NodeId id)
PastryRegrTest
isReallyAlive
in class PastryRegrTest
protected void killNode(PastryNode pn)
PastryRegrTest
killNode
in class PastryRegrTest
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |