rice.tutorial.lesson3
Class DistTutorial
java.lang.Object
rice.tutorial.lesson3.DistTutorial
public class DistTutorial
- 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.lesson3.DistTutorial localbindport bootIP bootPort
example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 9001 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistTutorial
public DistTutorial(int bindport,
InetSocketAddress bootaddress,
Environment env)
throws Exception
- This constructor sets up a PastryNode. It will bootstrap to an
existing ring if it can find one 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 fromenv - the environment for these nodes
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Usage:
java [-cp FreePastry-.jar] rice.tutorial.lesson3.DistTutorial localbindport bootIP bootPort
example java rice.tutorial.DistTutorial 9001 pokey.cs.almamater.edu 9001
- Throws:
Exception
Copyright © 2010. All Rights Reserved.