Package com.nt.udc.testnodechain.config
Class NodeChainTestCfg
java.lang.Object
com.nt.udc.testnodechain.config.NodeChainTestCfg
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(NodeChainTestCfgItem cfgItem) This method adds the Node Chain Test configuration.boolean
containsTestId
(String testId) This method returns list of all locked and running nodes part of test.This method returns list of stale tests from configuration.This method returns list of stopped tests from configuration.getTestConfiguration
(String testId) This method returns a NodeChainTestCfgItem object from test ID.void
load()
This method loads the Node Chain Test configuration.void
removeTestFromConfig
(String testId) This method removes a test from configuration.void
update
(String testId, NodeChainTestCfgUpdateIfc callback) This method updates the Node Chain Test configuration.
-
Constructor Details
-
NodeChainTestCfg
-
-
Method Details
-
containsTestId
-
getTestConfiguration
This method returns a NodeChainTestCfgItem object from test ID.- Parameters:
testId
- Node Chain Test identifier
-
add
This method adds the Node Chain Test configuration.- Parameters:
cfgItem
- NodeChainTestCfgItem object to be added- Throws:
IOException
- Exception thrown while writing to the fileNodeChainTestException
-
update
This method updates the Node Chain Test configuration.- Parameters:
updatedCfg
- Updated NodeChainTestCfgItem object- Throws:
IOException
- Exception thrown if something were to go wrong
-
load
This method loads the Node Chain Test configuration.- Throws:
IOException
- Exception thrown while writing to the file
-
getAllLockedAndRunningTestNodes
This method returns list of all locked and running nodes part of test.- Returns:
- List of all locked and running nodes part of test
-
getStoppedTests
This method returns list of stopped tests from configuration.- Returns:
- List of stopped tests from configuration
-
getStaleTests
This method returns list of stale tests from configuration.- Returns:
- List of stale tests from configuration
-
removeTestFromConfig
This method removes a test from configuration.- Parameters:
testId
- Identifier of a test- Throws:
IOException
- Thrown if something goes wrong while updating the configuration file
-
getRunningTests
-
getLockedAndRunningTests
-
getAllTests
-
getCfgMap
-