Class ModuleBlockMetaDataConfig
- java.lang.Object
-
- com.tibco.ep.tcs.runtime.config.BaseConfig
-
- com.tibco.ep.tcs.runtime.config.BlockMetaDataConfig
-
- com.tibco.ep.tcs.runtime.config.ModuleBlockMetaDataConfig
-
public class ModuleBlockMetaDataConfig extends BlockMetaDataConfig
Configuration that describes the metadata for a TCS module block.
-
-
Field Summary
-
Fields inherited from class com.tibco.ep.tcs.runtime.config.BlockMetaDataConfig
CONFIGURATION_SCHEMA_PROP
-
-
Constructor Summary
Constructors Constructor Description ModuleBlockMetaDataConfig()
Create a new empty module block metadata object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleBlockMetaDataConfig
addInputPort(String portName, ModuleBlockPortConfig portConfig)
Add an input port name and associated configuration.ModuleBlockMetaDataConfig
addOutputPort(String portName, ModuleBlockPortConfig portConfig)
Add an output port name and associated configuration.ModuleBlockMetaDataConfig
addParameterTransformation(TransformationConfig parameterTransformation)
Add a parameter transformation.protected void
fillMap(Map<String,Object> props)
Add this object's properties to the specified map.String
getFullyQualifiedEntryPointModuleName()
Return the fully-qualified name of the underlying EventFlow module that serves as the block's entry point.Map<String,ModuleBlockPortConfig>
getInputPorts()
Return this block's map of input ports, indexed by port name.Map<String,ModuleBlockPortConfig>
getOutputPorts()
Return this block's map of output ports, indexed by port name, null if none.List<TransformationConfig>
getParameterTransformations()
Return a list of transformations to produce module- or container-scope parameters, null if none.ModuleBlockMetaDataConfig
setConfigurationSchema(String configurationSchema)
Set the schema that describes and validates configuration for this block, expressed as a fully-qualified class path resource.ModuleBlockMetaDataConfig
setFullyQualifiedEntryPointModuleName(String fullyQualifiedEntryPointModuleName)
Set the fully-qualified name of the underlying EventFlow module that serves as the block's entry point.ModuleBlockMetaDataConfig
setInputPorts(Map<String,ModuleBlockPortConfig> inputPorts)
Set this block's map of input ports, indexed by port name.ModuleBlockMetaDataConfig
setOutputPorts(Map<String,ModuleBlockPortConfig> outputPorts)
Set this block's map of output ports, indexed by port name, null if none.ModuleBlockMetaDataConfig
setParameterTransformations(List<TransformationConfig> parameterTransformations)
Set a list of transformations to produce module- or container-scope parameters, null if none.-
Methods inherited from class com.tibco.ep.tcs.runtime.config.BlockMetaDataConfig
getConfigurationSchema
-
Methods inherited from class com.tibco.ep.tcs.runtime.config.BaseConfig
toHOCON
-
-
-
-
Method Detail
-
getFullyQualifiedEntryPointModuleName
public String getFullyQualifiedEntryPointModuleName()
Return the fully-qualified name of the underlying EventFlow module that serves as the block's entry point.
- Returns:
- entry point module
-
setFullyQualifiedEntryPointModuleName
public ModuleBlockMetaDataConfig setFullyQualifiedEntryPointModuleName(String fullyQualifiedEntryPointModuleName)
Set the fully-qualified name of the underlying EventFlow module that serves as the block's entry point.
- Parameters:
fullyQualifiedEntryPointModuleName
- entry module- Returns:
- this object
-
getParameterTransformations
public List<TransformationConfig> getParameterTransformations()
Return a list of transformations to produce module- or container-scope parameters, null if none.
- Returns:
- parameter transformations, null if none.
-
setParameterTransformations
public ModuleBlockMetaDataConfig setParameterTransformations(List<TransformationConfig> parameterTransformations)
Set a list of transformations to produce module- or container-scope parameters, null if none.
- Parameters:
parameterTransformations
- null if none transformation list- Returns:
- this object
-
addParameterTransformation
public ModuleBlockMetaDataConfig addParameterTransformation(TransformationConfig parameterTransformation)
Add a parameter transformation. Cannot be null.
- Parameters:
parameterTransformation
- transformation to add- Returns:
- this object
-
getInputPorts
public Map<String,ModuleBlockPortConfig> getInputPorts()
Return this block's map of input ports, indexed by port name.
- Returns:
- input ports
-
setInputPorts
public ModuleBlockMetaDataConfig setInputPorts(Map<String,ModuleBlockPortConfig> inputPorts)
Set this block's map of input ports, indexed by port name.
- Parameters:
inputPorts
- port map- Returns:
- this object
-
addInputPort
public ModuleBlockMetaDataConfig addInputPort(String portName, ModuleBlockPortConfig portConfig)
Add an input port name and associated configuration. Neither can be null.
- Parameters:
portName
- port nameportConfig
- port configuration- Returns:
- this object
-
getOutputPorts
public Map<String,ModuleBlockPortConfig> getOutputPorts()
Return this block's map of output ports, indexed by port name, null if none.
- Returns:
- output ports, null if none
-
setOutputPorts
public ModuleBlockMetaDataConfig setOutputPorts(Map<String,ModuleBlockPortConfig> outputPorts)
Set this block's map of output ports, indexed by port name, null if none.
- Parameters:
outputPorts
- port map, null if none- Returns:
- this object
-
addOutputPort
public ModuleBlockMetaDataConfig addOutputPort(String portName, ModuleBlockPortConfig portConfig)
Add an output port name and associated configuration. Neither can be null.
- Parameters:
portName
- port nameportConfig
- port configuration- Returns:
- this object
-
setConfigurationSchema
public ModuleBlockMetaDataConfig setConfigurationSchema(String configurationSchema)
Set the schema that describes and validates configuration for this block, expressed as a fully-qualified class path resource.
- Overrides:
setConfigurationSchema
in classBlockMetaDataConfig
- Parameters:
configurationSchema
- schema- Returns:
- this object
-
fillMap
protected void fillMap(Map<String,Object> props)
Add this object's properties to the specified map.
- Overrides:
fillMap
in classBlockMetaDataConfig
- Parameters:
props
- map to fill
-
-