|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.commonapi.testing.CommonAPITest rice.p2p.scribe.testing.ScribeRegrTest
public class ScribeRegrTest
Nested Class Summary | |
---|---|
protected static class |
ScribeRegrTest.TestRouteMessage
Utility class which simulates a route message |
protected class |
ScribeRegrTest.TestScribeClient
DESCRIBE THE CLASS |
protected static class |
ScribeRegrTest.TestScribeContent
Utility class for past content objects |
class |
ScribeRegrTest.TestScribePolicy
|
Field Summary | |
---|---|
static java.lang.String |
INSTANCE
DESCRIBE THE FIELD |
protected ScribeRegrTest.TestScribePolicy[] |
policies
The scribe policies |
protected ScribeImpl[] |
scribes
DESCRIBE THE FIELD |
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, PROTOCOL_RENDEZVOUS, PROTOCOL_SOCKET, simulator, SIMULATOR, SIMULATOR_EUCLIDEAN, SIMULATOR_GT_ITM, SIMULATOR_SPHERE, SUCCESS, TIME_TO_FIND_FAULTY |
Constructor Summary | |
---|---|
ScribeRegrTest(Environment env)
Constructor which sets up all local variables |
Method Summary | |
---|---|
static java.util.List<Topic> |
buildListOf1(Topic topic)
|
ScribeRegrTest.TestScribeContent |
buildTestScribeContent(Topic topic,
int numMessages)
|
static void |
main(java.lang.String[] args)
Usage: DistScribeRegrTest [-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. |
void |
setupParams(Environment env)
|
protected void |
testAddNode()
|
protected void |
testAPI()
Tests basic publish functionality |
protected void |
testBasic(int skip,
java.lang.String name)
Tests basic functionality |
protected void |
testFailureNotification()
Tests failure notification |
protected void |
testMaintenance()
Tests basic publish functionality |
protected void |
testMultiSubscribe(int skip,
java.lang.String name)
Makes sure that if you subscribe to multiple topics at once that they end up on different nodes. |
protected void |
testSingleRoot(java.lang.String name)
|
Methods inherited from class rice.p2p.commonapi.testing.CommonAPITest |
---|
assertEquals, assertTrue, createNode, createNodes, getBootstrap, kill, parseArgs, pause, sectionDone, sectionStart, simulate, 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 java.lang.String INSTANCE
protected ScribeImpl[] scribes
protected ScribeRegrTest.TestScribePolicy[] policies
Constructor Detail |
---|
public ScribeRegrTest(Environment env) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public ScribeRegrTest.TestScribeContent buildTestScribeContent(Topic topic, int numMessages)
public void setupParams(Environment env)
setupParams
in class CommonAPITest
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 CommonAPITest
node
- The newly created nodenum
- The number of this nodeprotected void runTest()
runTest
in class CommonAPITest
protected void testAddNode()
protected void testBasic(int skip, java.lang.String name)
protected void testMultiSubscribe(int skip, java.lang.String name)
protected void testAPI()
protected void testFailureNotification()
protected void testSingleRoot(java.lang.String name)
protected void testMaintenance()
public static java.util.List<Topic> buildListOf1(Topic topic)
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |