Class AdminTNCManager

java.lang.Object
com.nt.udc.testnodechain.adminserver.AdminTNCManager

public class AdminTNCManager extends Object
  • Constructor Details

  • Method Details

    • startTest

      public void startTest(String testId, TNCStartRequestIfc startRequest)
      Initiates the start of a test with the specified test ID and start request. The timeout value is read from the configuration.
      Parameters:
      testId - The unique identifier for the test.
      startRequest - An instance of TNCStartRequestIfc which would be invoked to start the test in a separate thread
    • startTest

      public void startTest(String testId, long timeOutInSecs, TNCStartRequestIfc startRequest)
      Initiates the start of a test with the specified test ID and start request.
      Parameters:
      testId - The unique identifier for the test.
      timeOutInSecs - The test duration after which it will be marked as timedout
      startRequest - An instance of TNCStartRequestIfc which would be invoked to start the test in a separate thread
    • extendTestTimeout

      public boolean extendTestTimeout(String testId) throws NodeChainTestException
      Extends the timeout duration for a test by the default timeout value, identified by the given testId.
      Parameters:
      testId - The unique identifier of the test to extend the timeout.
      Throws:
      NodeChainTestException
    • completeTest

      public void completeTest(String testId, boolean isStale)
    • validateConfigurations

      public boolean validateConfigurations()
      Validates the configurations and returns a boolean indicating whether the configurations are valid.
      Returns:
      true if the configurations are valid, false otherwise.
    • handleNodeManagerConnectionLoss

      public void handleNodeManagerConnectionLoss(String nmId)
    • handleAdminServerRestart

      public void handleAdminServerRestart()
    • shutdown

      public void shutdown()