Class AdminTNCManager
java.lang.Object
com.nt.udc.testnodechain.adminserver.AdminTNCManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
completeTest
(String testId, boolean isStale) boolean
extendTestTimeout
(String testId) Extends the timeout duration for a test by the default timeout value, identified by the given testId.void
void
void
shutdown()
void
startTest
(String testId, long timeOutInSecs, TNCStartRequestIfc startRequest) Initiates the start of a test with the specified test ID and start request.void
startTest
(String testId, TNCStartRequestIfc startRequest) Initiates the start of a test with the specified test ID and start request.boolean
Validates 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:
true
if the configurations are valid,false
otherwise.
-
handleNodeManagerConnectionLoss
-
handleAdminServerRestart
public void handleAdminServerRestart() -
shutdown
public void shutdown()
-