Class AdminTNCManager
java.lang.Object
com.nt.udc.testnodechain.adminserver.AdminTNCManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteTest(String testId, boolean isStale) booleanextendTestTimeout(String testId) Extends the timeout duration for a test by the default timeout value, identified by the given testId.voidvoidvoidshutdown()voidstartTest(String testId, long timeOutInSecs, TNCStartRequestIfc startRequest) Initiates the start of a test with the specified test ID and start request.voidstartTest(String testId, TNCStartRequestIfc startRequest) Initiates the start of a test with the specified test ID and start request.booleanValidates the configurations and returns a boolean indicating whether the configurations are valid.
-
Constructor Details
-
AdminTNCManager
-
-
Method Details
-
startTest
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
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 timedoutstartRequest- An instance of TNCStartRequestIfc which would be invoked to start the test in a separate thread
-
extendTestTimeout
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
-
validateConfigurations
public boolean validateConfigurations()Validates the configurations and returns a boolean indicating whether the configurations are valid.- Returns:
trueif the configurations are valid,falseotherwise.
-
handleNodeManagerConnectionLoss
-
handleAdminServerRestart
public void handleAdminServerRestart() -
shutdown
public void shutdown()
-