|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.tutorial.lesson6.ScribeTutorial
public class ScribeTutorial
This tutorial shows how to use Scribe.
Constructor Summary | |
---|---|
ScribeTutorial(int bindport,
java.net.InetSocketAddress bootaddress,
int numNodes,
Environment env)
Based on the rice.tutorial.lesson4.DistTutorial This constructor launches numNodes PastryNodes. |
Method Summary | |
---|---|
static NodeHandle |
getRoot(NodeHandle seed,
java.util.Hashtable appTable)
Recursively crawl up the tree to find the root. |
static void |
main(java.lang.String[] args)
Usage: java [-cp FreePastry- |
static void |
printTree(java.util.Vector apps)
Note that this function only works because we have global knowledge. |
static void |
recursivelyPrintChildren(NodeHandle curNode,
int recursionDepth,
java.util.Hashtable appTable)
Print's self, then children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScribeTutorial(int bindport, java.net.InetSocketAddress bootaddress, int numNodes, Environment env) throws java.lang.Exception
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
java.lang.Exception
Method Detail |
---|
public static void printTree(java.util.Vector apps)
apps
- Vector of the applicatoins.public static NodeHandle getRoot(NodeHandle seed, java.util.Hashtable appTable)
public static void recursivelyPrintChildren(NodeHandle curNode, int recursionDepth, java.util.Hashtable appTable)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |