rice.tutorial.appsocket
Class DistTutorial
java.lang.Object
rice.tutorial.appsocket.DistTutorial
- public class DistTutorial
- 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
Field Summary |
static boolean |
USE_DIRECT
DESCRIBE THE FIELD |
Constructor Summary |
DistTutorial(int bindport,
java.net.InetSocketAddress bootaddress,
int numNodes,
Environment env,
boolean useDirect)
This constructor launches numNodes PastryNodes. |
Method Summary |
static void |
main(java.lang.String[] args)
Usage: java [-cp FreePastry-.jar]
rice.tutorial.lesson4.DistTutorial localbindport bootIP bootPort numNodes
example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 9001 10 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USE_DIRECT
public static final boolean USE_DIRECT
- DESCRIBE THE FIELD
- See Also:
- Constant Field Values
DistTutorial
public DistTutorial(int bindport,
java.net.InetSocketAddress bootaddress,
int numNodes,
Environment env,
boolean useDirect)
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:
bindport
- the local port to bind tobootaddress
- the IP:port of the node to boot fromnumNodes
- the number of nodes to create in this JVMenv
- the environment for these nodesuseDirect
- DESCRIBE THE PARAMETER
- Throws:
java.lang.Exception
- DESCRIBE THE EXCEPTION
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Usage: java [-cp FreePastry-.jar]
rice.tutorial.lesson4.DistTutorial localbindport bootIP bootPort numNodes
example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 9001 10
- Parameters:
args
- The command line arguments
- Throws:
java.lang.Exception
- DESCRIBE THE EXCEPTION
Copyright © 2001-2005 - Rice Pastry.