|
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
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)
Constructor for DistPastryRegrTest. |
Method Summary | |
protected NodeHandle |
getBootstrap(boolean firstNode)
Gets a handle to a bootstrap node. |
boolean |
isReallyAlive(NodeHandle nh)
Gets the ReallyAlive attribute of the DistPastryRegrTest object |
protected void |
killNode(PastryNode pn)
DESCRIBE THE METHOD |
static void |
main(java.lang.String[] args)
Usage: DistRegrPastryTest [-port p] [-protocol (wire|rmi)] [-nodes n] [-bootstrap host[:port]] [-help] |
void |
pause(int ms)
DESCRIBE THE METHOD |
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()
DESCRIBE THE METHOD |
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(Environment env) throws java.io.IOException
env
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONMethod Detail |
protected NodeHandle getBootstrap(boolean firstNode)
getBootstrap
in class PastryRegrTest
firstNode
- true if bootstraping the first virtual node on this host
public boolean isReallyAlive(NodeHandle nh)
isReallyAlive
in class PastryRegrTest
nh
- DESCRIBE THE PARAMETER
protected void registerapp(PastryNode pn, RegrTestApp app)
registerapp
in class PastryRegrTest
pn
- pastry nodeapp
- newly created applicationpublic boolean simulate()
simulate
in class PastryRegrTest
public void pause(int ms)
pause
in class PastryRegrTest
ms
- DESCRIBE THE PARAMETERprotected void killNode(PastryNode pn)
killNode
in class PastryRegrTest
pn
- DESCRIBE THE PARAMETERpublic static void main(java.lang.String[] args) throws java.io.IOException
args
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |