|
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 rice.pastry.testing.DistPastryRegrTest
public class 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 |
---|
environment, factory, inConcJoin, lastDist, lastMsg, lastNode, pastryNodes, pastryNodesLastAdded, pastryNodesSorted, pastryNodesSortedReady |
Constructor Summary | |
---|---|
DistPastryRegrTest(Environment env)
|
Method Summary | |
---|---|
protected NodeHandle |
getBootstrap(boolean firstNode)
Gets a handle to a bootstrap node. |
boolean |
isReallyAlive(NodeHandle nh)
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 |
---|
checkRoutingTable, 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(Environment env) throws java.io.IOException
java.io.IOException
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(NodeHandle nh)
PastryRegrTest
isReallyAlive
in class PastryRegrTest
protected void killNode(PastryNode pn)
PastryRegrTest
killNode
in class PastryRegrTest
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |