rice.tutorial.past
Class PastTutorial
java.lang.Object
rice.tutorial.past.PastTutorial
public class PastTutorial
- extends Object
This tutorial shows how to use Past.
- Author:
- Jeff Hoye, Jim Stewart, Ansley Post
|
Constructor Summary |
PastTutorial(int bindport,
InetSocketAddress bootaddress,
int numNodes,
Environment env)
Based on the rice.tutorial.scribe.ScribeTutorial
This constructor launches numNodes PastryNodes. |
|
Method Summary |
static void |
main(String[] args)
Usage: java [-cp FreePastry- .jar]
rice.tutorial.past.PastTutorial localbindport bootIP bootPort numNodes
example java rice.tutorial.past.PastTutorial 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 |
PastTutorial
public PastTutorial(int bindport,
InetSocketAddress bootaddress,
int numNodes,
Environment env)
throws Exception
- Based on the rice.tutorial.scribe.ScribeTutorial
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
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Usage: java [-cp FreePastry- .jar]
rice.tutorial.past.PastTutorial localbindport bootIP bootPort numNodes
example java rice.tutorial.past.PastTutorial 9001 pokey.cs.almamater.edu 9001 10
- Throws:
Exception
Copyright © 2010. All Rights Reserved.