| 
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.past.testing.PastRegrTest
| Nested Class Summary | |
protected static class | 
PastRegrTest.NonMutableTestPastContent
DESCRIBE THE CLASS  | 
protected static class | 
PastRegrTest.NonOverwritingTestPastContent
DESCRIBE THE CLASS  | 
protected  class | 
PastRegrTest.TestCommand
Common superclass for test commands.  | 
protected  class | 
PastRegrTest.TestExceptionCommand
Common superclass for test commands which should throw an exception  | 
protected static class | 
PastRegrTest.TestPastContent
Utility class for past content objects  | 
protected static class | 
PastRegrTest.TestPastContentHandle
Utility class for past content object handles  | 
protected static class | 
PastRegrTest.TestRouteMessage
Utility class which simulates a route message  | 
protected static class | 
PastRegrTest.VersionedTestPastContent
DESCRIBE THE CLASS  | 
| Field Summary | |
static java.lang.String | 
INSTANCE
DESCRIBE THE FIELD  | 
protected  PastImpl[] | 
pasts
DESCRIBE THE FIELD  | 
static int | 
REPLICATION_FACTOR
DESCRIBE THE FIELD  | 
protected  java.util.Random | 
rng
DESCRIBE THE FIELD  | 
protected  StorageManager[] | 
storages
DESCRIBE THE FIELD  | 
| Fields inherited from class rice.p2p.commonapi.testing.CommonAPITest | 
BOOTSTRAP_HOST, BOOTSTRAP_PORT, factory, FACTORY, FAILURE, idFactory, INSTANCE_NAME, nodes, NUM_NODES, PAD_SIZE, PORT, PROTOCOL, PROTOCOL_DIRECT, simulator, SIMULATOR, SIMULATOR_EUCLIDEAN, SIMULATOR_SPHERE, SUCCESS | 
| Constructor Summary | |
PastRegrTest()
Constructor which sets up all local variables  | 
|
| Method Summary | |
static void | 
main(java.lang.String[] args)
Usage: DistPastTest [-port p] [-bootstrap host[:port]] [-nodes n] [-protocol (rmi|wire)] [-help]  | 
protected  void | 
processNode(int num,
            Node node)
Method which should process the given newly-created node  | 
protected  void | 
runTest()
Method which should run the test - this is called once all of the nodes have been created and are ready.  | 
protected  void | 
testCaching()
Tests the dynamic caching function in Past.  | 
protected  void | 
testFetch()
Tests the fetch function in Past.  | 
protected  void | 
testLookupHandles()
Tests the lookup handles function in Past.  | 
protected  void | 
testRouteRequest()
Tests routing a Past request to a particular node.  | 
protected  void | 
testVersionControl()
Tests overwriting an exiting object with a new one  | 
| Methods inherited from class rice.p2p.commonapi.testing.CommonAPITest | 
assertEquals, assertTrue, createNode, createNodes, getBootstrap, kill, parseArgs, pause, sectionDone, sectionStart, simulate, start, stepDone, stepDone, stepDone, stepException, stepStart | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected StorageManager[] storages
protected PastImpl[] pasts
protected java.util.Random rng
public static java.lang.String INSTANCE
public static int REPLICATION_FACTOR
| Constructor Detail | 
public PastRegrTest()
| Method Detail | 
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 CommonAPITestprotected void testRouteRequest()
protected void testVersionControl()
protected void testFetch()
protected void testLookupHandles()
protected void testCaching()
public static void main(java.lang.String[] args)
args - DESCRIBE THE PARAMETER
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||