Rice Pastry API

rice.p2p.scribe.testing
Class ScribeRegrTest

java.lang.Object
  |
  +--rice.p2p.commonapi.testing.CommonAPITest
        |
        +--rice.p2p.scribe.testing.ScribeRegrTest

public class ScribeRegrTest
extends CommonAPITest

Version:
$Id: ScribeRegrTest.java,v 1.7 2003/10/20 01:20:27 amislove Exp $
Author:
Alan Mislove

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
protected  java.util.Random generateIdRng
           
static java.lang.String INSTANCE
          DESCRIBE THE FIELD
protected  ScribeRegrTest.TestScribePolicy[] policies
          The scribe policies
protected  java.util.Random rng
          DESCRIBE THE FIELD
protected  rice.p2p.scribe.ScribeImpl[] scribes
          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
ScribeRegrTest()
          Constructor which sets up all local variables
 
Method Summary
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, rice.p2p.commonapi.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 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 testSingleRoot(java.lang.String name)
           
 
Methods inherited from class rice.p2p.commonapi.testing.CommonAPITest
assertEquals, assertTrue, createNode, 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

INSTANCE

public static java.lang.String INSTANCE
DESCRIBE THE FIELD


scribes

protected rice.p2p.scribe.ScribeImpl[] scribes
DESCRIBE THE FIELD


policies

protected ScribeRegrTest.TestScribePolicy[] policies
The scribe policies


rng

protected java.util.Random rng
DESCRIBE THE FIELD


generateIdRng

protected java.util.Random generateIdRng
Constructor Detail

ScribeRegrTest

public ScribeRegrTest()
Constructor which sets up all local variables

Method Detail

main

public static void main(java.lang.String[] args)
Usage: DistScribeRegrTest [-port p] [-bootstrap host[:port]] [-nodes n] [-protocol (rmi|wire)] [-help]

Parameters:
args - DESCRIBE THE PARAMETER

processNode

protected void processNode(int num,
                           rice.p2p.commonapi.Node node)
Method which should process the given newly-created node

Specified by:
processNode in class CommonAPITest
Parameters:
node - The newly created node
num - The number of this node

runTest

protected void runTest()
Method which should run the test - this is called once all of the nodes have been created and are ready.

Specified by:
runTest in class CommonAPITest

testBasic

protected void testBasic(int skip,
                         java.lang.String name)
Tests basic functionality


testAPI

protected void testAPI()
Tests basic publish functionality


testFailureNotification

protected void testFailureNotification()
Tests failure notification


testSingleRoot

protected void testSingleRoot(java.lang.String name)

testMaintenance

protected void testMaintenance()
Tests basic publish functionality


Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection