rice.pastry.testing
Class RoutingTableTest
java.lang.Object
rice.pastry.testing.RoutingTableTest
public class RoutingTableTest
- extends java.lang.Object
This tutorial shows how to setup a FreePastry node using the Socket Protocol.
- Author:
- Jeff Hoye
Constructor Summary |
RoutingTableTest(int numNodes,
int meanSessionTime,
boolean useScribe,
int msgSendRate,
int rtMaintTime,
int tryNum,
Environment env)
This constructor launches numNodes PastryNodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logHeavy
public static final boolean logHeavy
- See Also:
- Constant Field Values
RoutingTableTest
public RoutingTableTest(int numNodes,
int meanSessionTime,
boolean useScribe,
int msgSendRate,
int rtMaintTime,
int tryNum,
Environment env)
throws java.lang.Exception
- 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 for these nodes
- Throws:
java.lang.Exception
startLoggerTask
public void startLoggerTask()
createNodes
public void createNodes()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
sendSomeMessages
public void sendSomeMessages()
sendSomeScribeMessages
public void sendSomeScribeMessages()
createNode
public PastryNode createNode()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
finishNode
public void finishNode(PastryNode node)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Usage:
- Throws:
java.lang.Exception
Copyright © 2001-2005 - Rice Pastry.