|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.scribe.testing.DirectScribeMaintenanceTest
Nested Class Summary | |
class |
DirectScribeMaintenanceTest.TestAnycastMessage
A dummy test message used for checking if anycast is doing DFS correctly. |
Field Summary | |
java.util.Hashtable |
nodeIdToApp
|
java.util.Vector |
scribeClients
|
Constructor Summary | |
DirectScribeMaintenanceTest()
|
Method Summary | |
int |
BFS(NodeId topicId)
This does the Breadth First Traversal of the multicast tree for a topic. |
boolean |
checkAnycastDFS(NodeId topicId)
Checks the DFS implemented by MessageAnycast class. |
boolean |
checkNewJoin(NodeId topicId)
A test for checking if data was correctly propogated along subscribe messages if new join method was used, which takes data as a parameter. |
boolean |
checkParentPointerForAllTopics(int nodeIndex)
Check if parent pointer is set for all topics on the specified node. |
boolean |
checkRemoveChild(NodeId topicId)
Tests the removeChild interface method. |
boolean |
childParentViewConsistencyTest(int nodeIndex)
Here we are trying to check that the parent-child relationship is consistent from the view of the CHILD as well as the PARENT, on given node. |
boolean |
distinctChildrenTableConsistencyTest(int nodeIndex)
Check the consistency between distinctChildrenTable maintained by scribe on a node and the children maintained by each Topic on that node. |
boolean |
distinctParentTableConsistencyTest(int nodeIndex)
Check the consistency between distinctParentTable maintained by scribe on a node and the parent maintained by each Topic on that node. |
boolean |
doTesting()
The system of nodes is set up and the testing is performed while stepwise failing the desired number of nodes. |
NodeId |
generateTopicId(java.lang.String topicName)
|
void |
joinNodes(int num)
Creates the specified number of new nodes and joins them to the existing Pastry network. |
void |
makeScribeNode()
|
int |
rootApp(NodeId topicId)
This returns the index of the application that is currently the root for the topic's multicast tree. |
void |
scheduleHBOnAllNodes()
Schedule a HeartBeat event on all nodes for all topics. |
void |
scheduleTROnAllNodes()
Schedule a TreeRepair event on all nodes for all the topics. |
boolean |
setParentAndaddChildTest()
Checks whether setParent and addChild works correctly. |
boolean |
simulate()
|
static boolean |
start()
Main entry point for the test suite. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Vector scribeClients
public java.util.Hashtable nodeIdToApp
Constructor Detail |
public DirectScribeMaintenanceTest()
Method Detail |
public void makeScribeNode()
public void joinNodes(int num)
public boolean simulate()
public static boolean start()
public boolean doTesting()
public NodeId generateTopicId(java.lang.String topicName)
public int rootApp(NodeId topicId)
topicId
- the topic id of the multicast tree.
public int BFS(NodeId topicId)
topicId
- the topic id of the multicast tree to be traversed
public boolean distinctChildrenTableConsistencyTest(int nodeIndex)
nodeIndex
- index of specfied node.
public boolean distinctParentTableConsistencyTest(int nodeIndex)
nodeIndex
- index of specfied node.
public boolean checkParentPointerForAllTopics(int nodeIndex)
nodeIndex
- index of specfied node.
public void scheduleTROnAllNodes()
public void scheduleHBOnAllNodes()
public boolean childParentViewConsistencyTest(int nodeIndex)
nodeIndex
- index of specfied node.
public boolean setParentAndaddChildTest()
public boolean checkAnycastDFS(NodeId topicId)
public boolean checkNewJoin(NodeId topicId)
public boolean checkRemoveChild(NodeId topicId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |