|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.commonapi.testing.CommonAPITest
rice.p2p.replication.manager.testing.ReplicationManagerRegrTest
public class ReplicationManagerRegrTest
| Nested Class Summary | |
|---|---|
protected class |
ReplicationManagerRegrTest.TestReplicationManagerClient
DESCRIBE THE CLASS |
| Field Summary | |
|---|---|
protected ReplicationManagerRegrTest.TestReplicationManagerClient[] |
clients
The clients |
static java.lang.String |
INSTANCE
the instance name to use |
static int |
REPLICATION_FACTOR
The replication factor to use |
protected ReplicationManagerImpl[] |
replications
the replication impls in the ring |
| Fields inherited from class rice.p2p.commonapi.testing.CommonAPITest |
|---|
BOOTSTRAP, BOOTSTRAP_PORT, environment, factory, FACTORY, FAILURE, idFactory, INSTANCE_NAME, LEASE_PERIOD, logger, nodes, NUM_NODES, PAD_SIZE, params, PORT, PROTOCOL, PROTOCOL_DIRECT, simulator, SIMULATOR, SIMULATOR_EUCLIDEAN, SIMULATOR_GT_ITM, SIMULATOR_SPHERE, SUCCESS, TIME_TO_FIND_FAULTY |
| Constructor Summary | |
|---|---|
ReplicationManagerRegrTest(Environment env)
Constructor which sets up all local variables |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Usage: ReplicationRegrTest [-port p] [-bootstrap host[:port]] [-nodes n] [-protocol (rmi|wire)] [-help] |
void |
printValsForRange(IdRange range)
|
protected void |
processNode(int num,
Node node)
Method which should process the given newly-created node |
void |
runMaintenance()
|
protected void |
runTest()
Method which should run the test - this is called once all of the nodes have been created and are ready. |
void |
testBasic()
Tests basic functionality |
void |
testMaintenance()
Tests maintenance functionality |
void |
testOverload()
Tests basic functionality |
void |
testStress()
Tests basic functionality |
| Methods inherited from class rice.p2p.commonapi.testing.CommonAPITest |
|---|
assertEquals, assertTrue, createNode, createNodes, getBootstrap, kill, parseArgs, pause, sectionDone, sectionStart, setupParams, simulate, start, stepDone, stepDone, stepDone, stepException, stepStart, waitOnClock, waitToRecoverFromKilling |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int REPLICATION_FACTOR
public static java.lang.String INSTANCE
protected ReplicationManagerImpl[] replications
protected ReplicationManagerRegrTest.TestReplicationManagerClient[] clients
| Constructor Detail |
|---|
public ReplicationManagerRegrTest(Environment env)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.io.IOException
args - DESCRIBE THE PARAMETER
java.io.IOException
protected void processNode(int num,
Node node)
processNode in class CommonAPITestnode - The newly created nodenum - The number of this nodeprotected void runTest()
runTest in class CommonAPITestpublic void testBasic()
public void testMaintenance()
public void testOverload()
public void testStress()
public void printValsForRange(IdRange range)
public void runMaintenance()
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||