rice.tutorial.appsocket
Class Tutorial
java.lang.Object
rice.tutorial.appsocket.Tutorial
public class Tutorial
- extends Object
This tutorial shows how to setup a FreePastry node using the Socket Protocol.
- Author:
- Jeff Hoye
|
Method Summary |
static void |
main(String[] args)
Usage:
java [-cp FreePastry-.jar] rice.tutorial.appsocket.Tutorial localbindport bootIP bootPort numNodes
or
java [-cp FreePastry-.jar] rice.tutorial.appsocket.Tutorial -direct numNodes
example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 9001 10
example java rice.tutorial.DistTutorial -direct 10 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tutorial
public Tutorial(int bindport,
InetSocketAddress bootaddress,
int numNodes,
Environment env,
boolean useDirect)
throws 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 - true for the simulator, false for the socket protocol
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Usage:
java [-cp FreePastry-.jar] rice.tutorial.appsocket.Tutorial localbindport bootIP bootPort numNodes
or
java [-cp FreePastry-.jar] rice.tutorial.appsocket.Tutorial -direct numNodes
example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 9001 10
example java rice.tutorial.DistTutorial -direct 10
- Throws:
Exception
Copyright © 2010. All Rights Reserved.