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.splitstream.testing
Class SplitStreamRegrTest

    java.lang.Object
      rice.p2p.commonapi.testing.CommonAPITest
          rice.p2p.splitstream.testing.SplitStreamRegrTest

public class SplitStreamRegrTest
extends CommonAPITest

Version:
  $Id: SplitStreamRegrTest.java,v 1.20 2005/03/16 22:59:21 jeffh Exp $
Author:
  Ansley Post

Field Summary
`protected java.util.Random` | `generateIdRng` DESCRIBE THE FIELD
`static java.lang.String` | `INSTANCE` DESCRIBE THE FIELD
`protected java.util.Random` | `rng` DESCRIBE THE FIELD
`protected SplitStreamImpl[]` | `splitstreams` DESCRIBE THE FIELD
`protected rice.p2p.splitstream.testing.SplitStreamRegrTest.SplitStreamTestClient[]` | `ssclients` 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
`SplitStreamRegrTest()` Constructor which sets up all local variables

Method Summary
`protected boolean` | `checkTree(int startindex, int num)` DESCRIBE THE METHOD
`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.
`protected void` | `testBandwidthUsage()` A unit test for JUnit
`protected void` | `testBasic()` Tests routing a Past request to a particular node.
`protected void` | `testFailure(int numnodes)` A unit test for JUnit
`protected void` | `testIndependence()` A unit test for JUnit
`protected void` | `testMaintenance(int num)` A unit test for JUnit

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

### splitstreams

    protected SplitStreamImpl[] splitstreams

  DESCRIBE THE FIELD

### ssclients

    protected rice.p2p.splitstream.testing.SplitStreamRegrTest.SplitStreamTestClient[] ssclients

  DESCRIBE THE FIELD

### rng

    protected java.util.Random rng

  DESCRIBE THE FIELD

### generateIdRng

    protected java.util.Random generateIdRng

  DESCRIBE THE FIELD

### INSTANCE

    public static java.lang.String INSTANCE

  DESCRIBE THE FIELD

Constructor Detail

### SplitStreamRegrTest

    public SplitStreamRegrTest()

  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`

### testBandwidthUsage

    protected void testBandwidthUsage()

  A unit test for JUnit

### testIndependence

    protected void testIndependence()

  A unit test for JUnit

### testMaintenance

    protected void testMaintenance(int num)

  A unit test for JUnit

  Parameters:
    `num` - DESCRIBE THE PARAMETER

### testBasic

    protected void testBasic()

  Tests routing a Past request to a particular node.

### checkTree

    protected boolean checkTree(int startindex,
                                int num)

  DESCRIBE THE METHOD

  Parameters:
    `startindex` - DESCRIBE THE PARAMETER
    `num` - DESCRIBE THE PARAMETER
  Returns:
    DESCRIBE THE RETURN VALUE

### testFailure

    protected void testFailure(int numnodes)

  A unit test for JUnit

  Parameters:
    `numnodes` - DESCRIBE THE PARAMETER

### 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

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.