Class TNCManager

java.lang.Object
com.nt.udc.testnodechain.nodemgr.TNCManager

public class TNCManager extends Object
  • Constructor Details

    • TNCManager

      public TNCManager(Logger logger)
  • Method Details

    • initTest

      public TNCProcessor initTest(String testID, List<String> nodeIDs)
      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

      public static boolean containsTest(String testID)
    • getProducer

      public static EventQueueProducer getProducer(String nodeID)
    • getTestID

      public static String getTestID(String nodeID)
    • getNodesInTest

      public static List<String> getNodesInTest(String testId)
    • stopTest

      public void stopTest(String testID)
    • shutdown

      public void shutdown()