rice.pastry.testing
Class PastryNetworkTest

java.lang.Object
  extended by rice.pastry.testing.PastryNetworkTest

public class PastryNetworkTest
extends Object

Utility class for checking the consistency of an existing pastry network.


Field Summary
protected  InetSocketAddress bootstrap
           
protected  HashSet dead
           
protected  Environment environment
           
protected  SocketPastryNodeFactory factory
           
protected  int MAX_THREADS
           
protected  HashSet nodes
           
protected  HashSet unknown
           
 
Constructor Summary
PastryNetworkTest(Environment env, SocketPastryNodeFactory factory, InetSocketAddress bootstrap)
           
 
Method Summary
protected  HashMap fetchLeafSets()
           
protected  HashMap fetchRouteRow(int row)
           
static void main(String[] args)
           
 void start()
           
protected  void testLeafSets()
           
protected  void testRouteRow(int row)
           
protected  void testRoutingTables()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

protected SocketPastryNodeFactory factory

bootstrap

protected InetSocketAddress bootstrap

nodes

protected HashSet nodes

dead

protected HashSet dead

unknown

protected HashSet unknown

MAX_THREADS

protected final int MAX_THREADS
See Also:
Constant Field Values

environment

protected Environment environment
Constructor Detail

PastryNetworkTest

public PastryNetworkTest(Environment env,
                         SocketPastryNodeFactory factory,
                         InetSocketAddress bootstrap)
Method Detail

fetchLeafSets

protected HashMap fetchLeafSets()
                         throws Exception
Throws:
Exception

testLeafSets

protected void testLeafSets()
                     throws Exception
Throws:
Exception

fetchRouteRow

protected HashMap fetchRouteRow(int row)
                         throws IOException
Throws:
IOException

testRouteRow

protected void testRouteRow(int row)
                     throws IOException
Throws:
IOException

testRoutingTables

protected void testRoutingTables()
                          throws Exception
Throws:
Exception

start

public void start()
           throws Exception
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2010. All Rights Reserved.