Rice Pastry API

rice.past.testing
Class DistPASTRegrTest

java.lang.Object
  |
  +--rice.past.testing.DistPASTRegrTest

Deprecated. This version of PAST has been deprecated - please use the version located in the rice.p2p.past package.

public class DistPASTRegrTest
extends java.lang.Object

Version:
$Id: DistPASTRegrTest.java,v 1.15 2003/07/23 19:01:51 amislove Exp $
Author:
Charles Reis, Alan Mislove

Nested Class Summary
protected  class DistPASTRegrTest.TestCommand
          Deprecated. Common superclass for test commands.
protected  class DistPASTRegrTest.TestFailedException
          Deprecated. Exception indicating that a regression test failed.
protected  class DistPASTRegrTest.TestPASTFunctions
          Deprecated. Commands for running the PAST functions test.
 
Constructor Summary
DistPASTRegrTest()
          Deprecated.  
 
Method Summary
protected  void assertEquals(java.lang.String name, java.lang.String description, java.lang.Object expected, java.lang.Object actual)
          Deprecated. Thows an exception if expected is not equal to actual.
protected  void assertTrue(java.lang.String name, java.lang.String intention, boolean test)
          Deprecated. Throws an exception if the test condition is not met.
protected  void createNodes()
          Deprecated. Creates the nodes used for testing.
protected  rice.p2p.commonapi.NodeHandle getBootstrap()
          Deprecated. Gets a handle to a bootstrap node.
protected  void initialize()
          Deprecated. Sets up the environment for regression tests.
protected  void initiateMaintenance()
          Deprecated. Initiates replica maintenance on all nodes
static void main(java.lang.String[] args)
          Deprecated. Usage: DistPASTTest [-port p] [-bootstrap host[:port]] [-nodes n] [-protocol (rmi|wire)] [-help]
protected  rice.past.PASTService makePASTNode()
          Deprecated. Creates a pastryNode with a PASTService running on it.
 void pause(int ms)
          Deprecated.  
 void runTests()
          Deprecated. Initializes and runs all regression tests.
protected  void testRouteRequest()
          Deprecated. Tests routing a PAST request to a particular node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistPASTRegrTest

public DistPASTRegrTest()
Deprecated. 
Method Detail

getBootstrap

protected rice.p2p.commonapi.NodeHandle getBootstrap()
Deprecated. 
Gets a handle to a bootstrap node.

Returns:
handle to bootstrap node, or null.

pause

public void pause(int ms)
Deprecated. 

makePASTNode

protected rice.past.PASTService makePASTNode()
Deprecated. 
Creates a pastryNode with a PASTService running on it.


createNodes

protected void createNodes()
Deprecated. 
Creates the nodes used for testing.


initialize

protected void initialize()
Deprecated. 
Sets up the environment for regression tests.


initiateMaintenance

protected void initiateMaintenance()
Deprecated. 
Initiates replica maintenance on all nodes


assertTrue

protected void assertTrue(java.lang.String name,
                          java.lang.String intention,
                          boolean test)
                   throws DistPASTRegrTest.TestFailedException
Deprecated. 
Throws an exception if the test condition is not met.

DistPASTRegrTest.TestFailedException

assertEquals

protected void assertEquals(java.lang.String name,
                            java.lang.String description,
                            java.lang.Object expected,
                            java.lang.Object actual)
                     throws DistPASTRegrTest.TestFailedException
Deprecated. 
Thows an exception if expected is not equal to actual.

DistPASTRegrTest.TestFailedException

testRouteRequest

protected void testRouteRequest()
                         throws DistPASTRegrTest.TestFailedException
Deprecated. 
Tests routing a PAST request to a particular node.

DistPASTRegrTest.TestFailedException

runTests

public void runTests()
Deprecated. 
Initializes and runs all regression tests.


main

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


Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection