Rice Pastry API

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,v 1.22 2003/07/23 21:11:45 druschel Exp $
Author:
andrew ladd, peter druschel, sitaram iyer

Field Summary
 
Fields inherited from class rice.pastry.testing.PastryRegrTest
factory, inConcJoin, lastDist, lastMsg, lastNode, pastryNodes, pastryNodesLastAdded, pastryNodesSorted
 
Method Summary
protected  rice.pastry.NodeHandle getBootstrap(boolean firstNode)
          Get pastryNodes.last() to bootstrap with, or return null.
protected  boolean isReallyAlive(rice.pastry.NodeId id)
          get authoritative information about liveness of node.
protected  void killNode(rice.pastry.PastryNode pn)
          murder the node.
static void main(java.lang.String[] args)
          main.
 void pause(int ms)
           
protected  void registerapp(rice.pastry.PastryNode pn, rice.pastry.testing.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 rice.pastry.NodeHandle getBootstrap(boolean firstNode)
Get pastryNodes.last() to bootstrap with, or return null.

Specified by:
getBootstrap in class PastryRegrTest

registerapp

protected void registerapp(rice.pastry.PastryNode pn,
                           rice.pastry.testing.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(rice.pastry.NodeId id)
get authoritative information about liveness of node.

Specified by:
isReallyAlive in class PastryRegrTest

killNode

protected void killNode(rice.pastry.PastryNode pn)
murder the node. comprehensively.

Specified by:
killNode in class PastryRegrTest

main

public static void main(java.lang.String[] args)
main. just create the object and call PastryNode's main.


Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection