Package com.nt.udc.testnodechain.utils
Class SocketCartridgesIdentifier
java.lang.Object
com.nt.udc.testnodechain.utils.SocketCartridgesIdentifier
Title: Socket Cartridges Identifier
Description: This class is responsible for reading nodeTypeMapper.yaml and identifying if cartridges are socket based using nodeContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isInputFileBased
(String nodeContext) Returns If inputType for a node based on nodeContext is NA or notboolean
isOutputFileBased
(String nodeContext) Returns If outputType for a node based on nodeContext is NA or notUsed to read nodeTypeMapper.yaml into a hashmap
-
Constructor Details
-
SocketCartridgesIdentifier
public SocketCartridgesIdentifier()
-
-
Method Details
-
readMapper
Used to read nodeTypeMapper.yaml into a hashmap- Returns:
- Mapinvalid input: '<'String, Object>
-
isInputFileBased
Returns If inputType for a node based on nodeContext is NA or not- Parameters:
nodeContext
-- Returns:
- boolean
-
isOutputFileBased
Returns If outputType for a node based on nodeContext is NA or not- Parameters:
nodeContext
-- Returns:
- boolean
-