Rice Pastry API

rice.tutorial.gtitm
Class DirectTutorial

java.lang.Object
  extended by rice.tutorial.gtitm.DirectTutorial

public class DirectTutorial
extends java.lang.Object

This tutorial shows how to setup a FreePastry node using the Socket Protocol.

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
Jeff Hoye

Constructor Summary
DirectTutorial(int numNodes, Environment env, java.lang.String fileName)
          This constructor launches numNodes PastryNodes.
 
Method Summary
static void main(java.lang.String[] args)
          Usage: java [-cp FreePastry-.jar] rice.tutorial.gtitm.DirectTutorial numNodes example java rice.tutorial.gtitm.DirectTutorial 100 GNPINPUT
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectTutorial

public DirectTutorial(int numNodes,
                      Environment env,
                      java.lang.String fileName)
               throws java.lang.Exception
This constructor launches numNodes PastryNodes. They will bootstrap to an existing ring if one exists at the specified location, otherwise it will start a new ring.

Parameters:
numNodes - the number of nodes to create in this JVM
env - the environment for these nodes
fileName - DESCRIBE THE PARAMETER
Throws:
java.lang.Exception - DESCRIBE THE EXCEPTION
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Usage: java [-cp FreePastry-.jar] rice.tutorial.gtitm.DirectTutorial numNodes example java rice.tutorial.gtitm.DirectTutorial 100 GNPINPUT

Parameters:
args - The command line arguments
Throws:
java.lang.Exception - DESCRIBE THE EXCEPTION

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.