|
Rice Pastry API | ||||||||||
| 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 |
environment, factory, inConcJoin, lastDist, lastMsg, lastNode, pastryNodes, pastryNodesLastAdded, pastryNodesSorted |
| Constructor Summary | |
DistPastryRegrTest(Environment env)
Constructor for DistPastryRegrTest. |
|
| Method Summary | |
protected NodeHandle |
getBootstrap(boolean firstNode)
Gets a handle to a bootstrap node. |
boolean |
isReallyAlive(NodeId id)
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 EXCEPTION| Method Detail |
protected NodeHandle getBootstrap(boolean firstNode)
getBootstrap in class PastryRegrTestfirstNode - true if bootstraping the first virtual node on this host
public boolean isReallyAlive(NodeId id)
isReallyAlive in class PastryRegrTestid - DESCRIBE THE PARAMETER
protected void registerapp(PastryNode pn,
RegrTestApp app)
registerapp in class PastryRegrTestpn - pastry nodeapp - newly created applicationpublic boolean simulate()
simulate in class PastryRegrTestpublic void pause(int ms)
pause in class PastryRegrTestms - DESCRIBE THE PARAMETERprotected void killNode(PastryNode pn)
killNode in class PastryRegrTestpn - DESCRIBE THE PARAMETER
public 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 | ||||||||||