|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.testing.PastryNetworkTest
Utility class for checking the consistency of an existing pastry network.
Field Summary | |
protected java.net.InetSocketAddress |
bootstrap
DESCRIBE THE FIELD |
protected java.util.HashSet |
dead
DESCRIBE THE FIELD |
protected Environment |
environment
DESCRIBE THE FIELD |
protected SocketPastryNodeFactory |
factory
DESCRIBE THE FIELD |
protected int |
MAX_THREADS
DESCRIBE THE FIELD |
protected java.util.HashSet |
nodes
DESCRIBE THE FIELD |
protected java.util.HashSet |
unknown
DESCRIBE THE FIELD |
Constructor Summary | |
PastryNetworkTest(Environment env,
SocketPastryNodeFactory factory,
java.net.InetSocketAddress bootstrap)
Constructor for PastryNetworkTest. |
Method Summary | |
protected java.util.HashMap |
fetchLeafSets()
DESCRIBE THE METHOD |
protected java.util.HashMap |
fetchRouteRow(int row)
DESCRIBE THE METHOD |
static void |
main(java.lang.String[] args)
The main program for the PastryNetworkTest class |
void |
start()
DESCRIBE THE METHOD |
protected void |
testLeafSets()
A unit test for JUnit |
protected void |
testRouteRow(int row)
A unit test for JUnit |
protected void |
testRoutingTables()
A unit test for JUnit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected SocketPastryNodeFactory factory
protected java.net.InetSocketAddress bootstrap
protected java.util.HashSet nodes
protected java.util.HashSet dead
protected java.util.HashSet unknown
protected final int MAX_THREADS
protected Environment environment
Constructor Detail |
public PastryNetworkTest(Environment env, SocketPastryNodeFactory factory, java.net.InetSocketAddress bootstrap)
env
- DESCRIBE THE PARAMETERfactory
- DESCRIBE THE PARAMETERbootstrap
- DESCRIBE THE PARAMETERMethod Detail |
protected java.util.HashMap fetchLeafSets() throws java.lang.Exception
java.lang.Exception
- DESCRIBE THE EXCEPTIONprotected void testLeafSets() throws java.lang.Exception
java.lang.Exception
- DESCRIBE THE EXCEPTIONprotected java.util.HashMap fetchRouteRow(int row) throws java.io.IOException
row
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONprotected void testRouteRow(int row) throws java.io.IOException
row
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONprotected void testRoutingTables() throws java.lang.Exception
java.lang.Exception
- DESCRIBE THE EXCEPTIONpublic void start() throws java.lang.Exception
java.lang.Exception
- DESCRIBE THE EXCEPTIONpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command line arguments
java.lang.Exception
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |