Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.p2p.replication.manager.testing
Class ReplicationManagerRegrTest

    java.lang.Object
      rice.p2p.commonapi.testing.CommonAPITest
          rice.p2p.replication.manager.testing.ReplicationManagerRegrTest

public class ReplicationManagerRegrTest
extends CommonAPITest

Version:
  $Id: ReplicationManagerRegrTest.java,v 1.4 2004/08/07 17:18:32 amislove Exp $
Author:
  Alan Mislove

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
`protected java.util.Random` | `rng` random number generator

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
`ReplicationManagerRegrTest()` 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]
`protected void` | `processNode(int num, Node node)` Method which should process the given newly-created node
`void` | `runMaintenance()` DESCRIBE THE METHOD
`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, 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

### replications

    protected ReplicationManagerImpl[] replications

  the replication impls in the ring

### clients

    protected ReplicationManagerRegrTest.TestReplicationManagerClient[] clients

  The clients

### rng

    protected java.util.Random rng

  random number generator

### REPLICATION_FACTOR

    public static int REPLICATION_FACTOR

  The replication factor to use

### INSTANCE

    public static java.lang.String INSTANCE

  the instance name to use

Constructor Detail

### ReplicationManagerRegrTest

    public ReplicationManagerRegrTest()

  Constructor which sets up all local variables

Method Detail

### processNode

    protected void processNode(int num,
                               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

    public void testBasic()

  Tests basic functionality

### testMaintenance

    public void testMaintenance()

  Tests maintenance functionality

### testOverload

    public void testOverload()

  Tests basic functionality

### testStress

    public void testStress()

  Tests basic functionality

### runMaintenance

    public void runMaintenance()

  DESCRIBE THE METHOD

### main

    public static void main(java.lang.String[] args)

  Usage: ReplicationRegrTest [-port p] [-bootstrap host[:port]] [-nodes n] [-protocol (rmi|wire)] [-help]

  Parameters:
    `args` - DESCRIBE THE PARAMETER

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.