Package com.nt.udc.testnodechain.nodemgr
Class TNCManager
java.lang.Object
com.nt.udc.testnodechain.nodemgr.TNCManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsTest(String testID) getNodesInTest(String testId) static EventQueueProducergetProducer(String nodeID) static StringInitializes a new test with a specified test ID and associated node IDs.voidshutdown()void
-
Constructor Details
-
TNCManager
-
-
Method Details
-
initTest
Initializes a new test with a specified test ID and associated node IDs. This method initializes a new test identified by the given test ID and associates it with the provided list of node IDs. It creates a TNCProcessor for the test, and updates internal data structures to track the test and its associated nodes.- Parameters:
testID- The unique identifier for the new test to be initialized.nodeIDs- A List of node IDs associated with the test.- Returns:
- A TNCProcessor instance created for the initialized test, or null if the test already has a processor denoting failure.
-
containsTest
-
getProducer
-
getTestID
-
getNodesInTest
-
stopTest
-
shutdown
public void shutdown()
-