|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.tutorial.scribe.ScribeTutorial
public class ScribeTutorial
This tutorial shows how to use Scribe.
| Constructor Summary | |
|---|---|
ScribeTutorial(int bindport,
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,
Hashtable<NodeHandle,MyScribeClient> appTable)
Recursively crawl up the tree to find the root. |
static void |
main(String[] args)
Usage: java [-cp FreePastry- |
static void |
printTree(Vector<MyScribeClient> apps)
Note that this function only works because we have global knowledge. |
static void |
recursivelyPrintChildren(NodeHandle curNode,
int recursionDepth,
Hashtable<NodeHandle,MyScribeClient> 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,
InetSocketAddress bootaddress,
int numNodes,
Environment env)
throws 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
Exception| Method Detail |
|---|
public static void printTree(Vector<MyScribeClient> apps)
apps - Vector of the applicatoins.
public static NodeHandle getRoot(NodeHandle seed,
Hashtable<NodeHandle,MyScribeClient> appTable)
public static void recursivelyPrintChildren(NodeHandle curNode,
int recursionDepth,
Hashtable<NodeHandle,MyScribeClient> appTable)
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||