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.pastry.testing
Class DirectPastryRegrTest

    java.lang.Object
      rice.pastry.testing.PastryRegrTest
          rice.pastry.testing.DirectPastryRegrTest

    public class DirectPastryRegrTest

extends PastryRegrTest

PastryRegrTest a regression test suite for pastry.

Version:
  $Id: DirectPastryRegrTest.java 3801 2007-07-18 15:04:40Z jeffh $
Author:
  andrew ladd, peter druschel, sitaram iyer

Field Summary

Fields inherited from class rice.pastry.testing.PastryRegrTest
`environment, factory, inConcJoin, lastDist, lastMsg, lastNode, pastryNodes, pastryNodesLastAdded, pastryNodesSorted, pastryNodesSortedReady`

Method Summary
`protected void` | `checkRoutingTable(RegrTestApp rta)` verify the correctness of the routing table
`protected NodeHandle` | `getBootstrap(boolean firstNode)` Get pastryNodes.last() to bootstrap with, or return null.
`protected boolean` | `isReallyAlive(NodeHandle nh)` get authoritative information about liveness of node.
`protected void` | `killNode(PastryNode pn)` murder the node.
`static void` | `main(java.lang.String[] args)` main.
`void` | `pause(int ms)`
`protected void` | `registerapp(PastryNode pn, RegrTestApp app)` wire protocol specific handling of the application object e.g., RMI may launch a new thread
`protected boolean` | `simulate()` send one simulated message

Methods inherited from class rice.pastry.testing.PastryRegrTest
`generateNode, mainfunc, sendPings`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getBootstrap

    protected NodeHandle getBootstrap(boolean firstNode)

  Get pastryNodes.last() to bootstrap with, or return null.

  Specified by:
    `getBootstrap` in class `PastryRegrTest`

### registerapp

    protected void registerapp(PastryNode pn,
                               RegrTestApp app)

  wire protocol specific handling of the application object e.g., RMI may launch a new thread

  Specified by:
    `registerapp` in class `PastryRegrTest`
  Parameters:
    `pn` - pastry node
    `app` - newly created application

### simulate

    protected boolean simulate()

  send one simulated message

  Specified by:
    `simulate` in class `PastryRegrTest`

### pause

    public void pause(int ms)

  Specified by:
    `pause` in class `PastryRegrTest`

### isReallyAlive

    protected boolean isReallyAlive(NodeHandle nh)

  get authoritative information about liveness of node.

  Specified by:
    `isReallyAlive` in class `PastryRegrTest`

### killNode

    protected void killNode(PastryNode pn)

  murder the node. comprehensively.

  Specified by:
    `killNode` in class `PastryRegrTest`

### checkRoutingTable

    protected void checkRoutingTable(RegrTestApp rta)

  Description copied from class: `PastryRegrTest`
  verify the correctness of the routing table

  Overrides:
    `checkRoutingTable` in class `PastryRegrTest`

### main

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

  main. just create the object and call PastryNode's main.

  Throws:
    `java.io.IOException`

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.