rice.pastry.testing
Class RoutingTableTest
java.lang.Object
rice.pastry.testing.RoutingTableTest
public class RoutingTableTest
- extends Object
- 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 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:
Exception
startLoggerTask
public void startLoggerTask()
createNodes
public void createNodes()
throws InterruptedException
- Throws:
InterruptedException
sendSomeMessages
public void sendSomeMessages()
sendSomeScribeMessages
public void sendSomeScribeMessages()
createNode
public PastryNode createNode()
throws InterruptedException,
IOException
- Throws:
InterruptedException
IOException
finishNode
public void finishNode(PastryNode node)
main
public static void main(String[] args)
throws Exception
- Usage:
- Throws:
Exception
Copyright © 2010. All Rights Reserved.