Rice Pastry API

rice.pastry.testing
Class DirectPastryRegrTest

java.lang.Object
  extended byrice.pastry.testing.PastryRegrTest
      extended byrice.pastry.testing.DirectPastryRegrTest

public class DirectPastryRegrTest
extends PastryRegrTest

PastryRegrTest a regression test suite for pastry.

Version:
$Id: DirectPastryRegrTest.java 2805 2005-11-17 16:22:24Z 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
 
Method Summary
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)
          DESCRIBE THE METHOD
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
Parameters:
firstNode - DESCRIBE THE PARAMETER
Returns:
The Bootstrap value

isReallyAlive

protected boolean isReallyAlive(NodeHandle nh)
get authoritative information about liveness of node.

Specified by:
isReallyAlive in class PastryRegrTest
Parameters:
nh - DESCRIBE THE PARAMETER
Returns:
The ReallyAlive value

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
Returns:
DESCRIBE THE RETURN VALUE

pause

public void pause(int ms)
DESCRIBE THE METHOD

Specified by:
pause in class PastryRegrTest
Parameters:
ms - DESCRIBE THE PARAMETER

killNode

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

Specified by:
killNode in class PastryRegrTest
Parameters:
pn - DESCRIBE THE PARAMETER

main

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

Parameters:
args - DESCRIBE THE PARAMETER
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection