rice.pastry.testing
Class DistPastryRegrTest

public class DistPastryRegrTest
extends rice.pastry.testing.PastryRegrTest
a regression test suite for pastry with "distributed" nodes. All nodes are on one physical machine, but they communicate through one of the network transport protocols, i.e., RMI or WIRE. See the usage for more information, the -protocol option can be used to specify which protocol to run the test with.
Version:
$Id: DistPastryRegrTest.java,v 1.9 2002/09/13 15:21:04 druschel Exp $
Author:
Alan Mislove
Method Detail

getBootstrap

protected rice.pastry.NodeHandle getBootstrap(boolean firstNode)
Gets a handle to a bootstrap node.
Parameters:
firstNode - true if bootstraping the first virtual node on this host
Returns:
handle to bootstrap node, or null.

doInitstuff

private static void doInitstuff(java.lang.String[] args)
process command line args, set the RMI security manager, and start the RMI registry. Standard gunk that has to be done for all Dist apps.

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
Parameters:
pn - pastry node
app - newly created application

main

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