|
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.ClosestRegrTest
ClosestRegrTest A test suite for the getClosest algorithm. getClosest attempts to choose routing table entries with the closet proximity. Consider this test a PASS if the closest node is there more than 50% of the time. Potentially this test should be run daily and the proximity recorded over time to see if there was a drastic change based on algorithmic change.
Field Summary | |
static int |
NUM_NODES
DESCRIBE THE FIELD |
Method Summary | |
protected double |
getAvgNumEntries(java.util.Collection nds)
Gets the AvgNumEntries attribute of the ClosestRegrTest object |
protected NodeHandle |
getBootstrap()
Get pastryNodes.last() to bootstrap with, or return null. |
static void |
main(java.lang.String[] args)
main |
boolean |
pass()
DESCRIBE THE METHOD |
protected void |
run()
initializes the network and prepares for testing |
protected void |
test(int i,
DirectNodeHandle handle)
starts the testing process |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int NUM_NODES
Method Detail |
protected NodeHandle getBootstrap()
protected double getAvgNumEntries(java.util.Collection nds)
nds
- DESCRIBE THE PARAMETER
protected void run()
protected void test(int i, DirectNodeHandle handle)
i
- DESCRIBE THE PARAMETERhandle
- DESCRIBE THE PARAMETERpublic boolean pass()
public static void main(java.lang.String[] args) throws java.io.IOException
args
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |