|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mpisws.p2p.testing.transportlayer.replay.Recorder
public class Recorder
This tutorial shows how to use Scribe.
| Nested Class Summary | |
|---|---|
class |
Recorder.AppInvokation
|
class |
Recorder.PublishInvokation
|
class |
Recorder.SubscribeInvokation
|
| Field Summary |
|---|
| Fields inherited from interface org.mpisws.p2p.testing.transportlayer.replay.MyEvents |
|---|
EVT_BOOT, EVT_PUBLISH, EVT_SUBSCRIBE |
| Constructor Summary | |
|---|---|
Recorder(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<NodeHandle,MyScribeClient> appTable)
Recursively crawl up the tree to find the root. |
static void |
main(java.lang.String[] args)
Usage: java [-cp FreePastry- |
void |
printLog(java.lang.String arg,
Environment env)
|
static void |
printTree(java.util.ArrayList<MyScribeClient> apps)
Note that this function only works because we have global knowledge. |
static void |
recursivelyPrintChildren(NodeHandle curNode,
int recursionDepth,
java.util.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 Recorder(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 void printLog(java.lang.String arg,
Environment env)
throws java.io.IOException
java.io.IOExceptionpublic static void printTree(java.util.ArrayList<MyScribeClient> apps)
apps - Vector of the applicatoins.
public static NodeHandle getRoot(NodeHandle seed,
java.util.Hashtable<NodeHandle,MyScribeClient> appTable)
public static void recursivelyPrintChildren(NodeHandle curNode,
int recursionDepth,
java.util.Hashtable<NodeHandle,MyScribeClient> appTable)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||