rice.pastry.testing
Class HelloWorld

public class HelloWorld
A hello world example for pastry. This is the "direct" driver.
Version:
$Id: HelloWorld.java,v 1.6 2002/09/07 17:10:53 druschel Exp $
Author:
Sitaram Iyer
Constructor Detail

HelloWorld

public HelloWorld()
Constructor

Method Detail

getBootstrap

private rice.pastry.NodeHandle getBootstrap()
Get a handle to a bootstrap node. This is only a simulation, so we pick the most recently created node.
Returns:
handle to bootstrap node, or null.

makePastryNode

public void makePastryNode()
Create a Pastry node and add it to pastryNodes. Also create a client application for this node.

printLeafSets

private void printLeafSets()
Print leafsets of all nodes in pastryNodes.

sendRandomMessage

private void sendRandomMessage()
Invoke a HelloWorldApp method called sendRndMsg. First choose a random application from helloClients.

simulate

private boolean simulate()
Process one message.

main

public static void main(java.lang.String[] args)
Usage: HelloWorld [-msgs m] [-nodes n] [-verbose|-silent|-verbosity v] [-simultaneous_joins] [-simultaneous_msgs] [-help]