Package com.ibm.di.config.base
Class AssemblyLineConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.AssemblyLineConfigImpl
-
- All Implemented Interfaces:
AssemblyLineConfig,BaseConfiguration,MetamergeConfigChangeListener,OperationsConfig,java.io.Serializable
public class AssemblyLineConfigImpl extends BaseConfigurationImpl implements AssemblyLineConfig
The implementation class for the configuration of an AssemblyLine.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
-
Fields inherited from interface com.ibm.di.config.interfaces.AssemblyLineConfig
INPUT_MAP_NAME, OUTPUT_MAP_NAME
-
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
CHILD_PATH_SEPARATOR, DISABLE_EXTPROPS, DISABLE_INHERITANCE, INHERIT_NONE, INHERIT_PARENT, ONE_LEVEL, RECURSIVE, RECURSIVE_ONELEVEL, RECURSIVE_SUBTREE, SEARCH_EXACTCASE, SEARCH_ONELEVEL, SEARCH_PARAMNAME, SEARCH_PARAMNAME_RE, SEARCH_PROPERTY, SEARCH_REGEX, SEARCH_SUBSTRING, SUBTREE
-
-
Constructor Summary
Constructors Constructor Description AssemblyLineConfigImpl()Constructor for the AssemblyLineConfigImpl object.AssemblyLineConfigImpl(java.lang.Object config)Constructor providing a TreeMap of attribute/value pairs.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ContainerConfigaddComponent(BaseConfiguration config)This method adds a component configuration object to the correct component containerbooleanautoMapAllAttributes(java.lang.Object connectorName)Returns the automap flag for the AssemblyLinebooleancontainsComponent(java.lang.String name)Returns true if there is component (data flow or entry feed) named nameOperationConfigcreateOperation(java.lang.String name)This method creates a new operation object.AttributeMapConfiggetAttributeMap(boolean input)Returns the AssemblyLine's attribute mapAttributeMapConfiggetAttributeMap(java.lang.String name)Returns the AssemblyLine's attribute map by name ("Input"/"Output")CheckpointConfiggetCheckpointConfig()Deprecated.java.lang.ObjectgetClone()Return self cloneBaseConfigurationgetComponent(int position)Deprecated.in TDI 7.0BaseConfigurationgetComponent(java.lang.String name)Returns the component configurationBaseConfigurationgetComponentByName(java.lang.String name)Deprecated.in TDI 7.0intgetComponentCount()Deprecated.ContainerConfiggetComponents()Deprecated.in TDI 7.0ConnectorConfiggetConnector(int position)Returns the connector attribute of the AssemblyLineConfig objectConnectorConfiggetConnectorByName(java.lang.Object connectorName)Returns the connector attribute of the AssemblyLineConfig objectintgetConnectorCount()Returns the number of connectors in the assemblylineContainerConfiggetDataFlowComponents()Returns the data flow components containerbooleangetDebug()Returns the debug flag for the object.booleangetDebug(boolean defval)Returns the debug flag for the object.ContainerConfiggetEntryFeedComponents()Returns the entry feed components containerHookConfiggetHook(java.lang.String name)Returns a specific HookConfigHooksConfiggetHooks()Returns the AssemblyLine's HooksConfigLogConfiggetLogConfig()Returns the LogConfig objectOperationConfiggetOperation(java.lang.String name)This method returns the config for a given operation.ContainerConfiggetOperations()This method returns a list of supported operationsSchemaConfiggetPublishedInitParams()Returns the Published Initialization Parameter Schema for the AssemblyLineSandboxConfiggetSandboxConfig()Returns the Sandbox config objectSchemaConfiggetSchema(boolean input)Returns the AssemblyLine's schemaSchemaConfiggetSchema(java.lang.String name)Returns the AssemblyLine's schema by name ("Input"/"Output")BaseConfigurationgetSettings()Returns the AssemblyLine SettingsSimulationConfiggetSimulationConfig()Retrieves the Simulation Configuration which corresponds to the AssemblyLine.CallConfiggetTaskInputParameters()Deprecated.Use getSchema(true)CallConfiggetTaskOutputParameters()Deprecated.Use getSchema(false)PropertyConfiggetThreadOptions()Returns the Thread options config in the AssemblyLine configurationvoidinit()Preload all connectorsvoidinitSimulationConfig()Initializes the Simulation config.voidinsertComponent(BaseConfiguration connector, int position)Deprecated.in TDI 7.0booleanmoveComponent(int position, boolean up)Deprecated.in TDI 7.0voidremoveComponent(int position)Deprecated.in TDI 7.0voidremoveComponent(BaseConfiguration component)Removes a component from the assemblylinevoidremoveComponent(java.lang.String name)This method removes a named component configuration objectvoidrenameComponent(java.lang.String oldName, java.lang.String newName)Changes the local name of a connector (the name used in script engines etc )voidsetDebug(boolean debug)Sets the debug flag for the object.voidsetPublishedInitParams(SchemaConfig schema)Sets the Published Initialization Parameter Schema for the AssemblyLinevoidsetSettings(BaseConfiguration settings)Sets the AssemblyLine Settings of the AssemblyLineConfigvoidsetupInheritanceChain()Established the inheritance chain for this object.-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getLongName, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseConfigListeners, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setUseConfigListeners, setUseListeners, setUserComment, size, toEntry, toString, updateInheritsFrom, willExpandProps, willFlatten, willUseInherited
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
addListener, detachFromParent, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebugBreak, getEnabled, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getModTS, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebugBreak, setEnabled, setFlags, setInheritsFrom, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Constructor Detail
-
AssemblyLineConfigImpl
public AssemblyLineConfigImpl()
Constructor for the AssemblyLineConfigImpl object.
-
AssemblyLineConfigImpl
public AssemblyLineConfigImpl(java.lang.Object config)
Constructor providing a TreeMap of attribute/value pairs.- Parameters:
config- the config object containing initial data
-
-
Method Detail
-
init
public void init() throws java.lang.ExceptionPreload all connectors- Specified by:
initin interfaceBaseConfiguration- Overrides:
initin classBaseConfigurationImpl- Throws:
java.lang.Exception- An exception is thrown if this method fails.
-
getConnectorCount
public int getConnectorCount()
Returns the number of connectors in the assemblyline- Specified by:
getConnectorCountin interfaceAssemblyLineConfig- Returns:
- The connectorCount value
-
getConnector
public ConnectorConfig getConnector(int position)
Returns the connector attribute of the AssemblyLineConfig object- Specified by:
getConnectorin interfaceAssemblyLineConfig- Parameters:
position- Connector position- Returns:
- The connector configuration object
-
getConnectorByName
public ConnectorConfig getConnectorByName(java.lang.Object connectorName)
Returns the connector attribute of the AssemblyLineConfig object- Specified by:
getConnectorByNamein interfaceAssemblyLineConfig- Parameters:
connectorName- the name of the Connector for which to return the Connector configuration object- Returns:
- The connector configuration object.
-
getHook
public HookConfig getHook(java.lang.String name)
Returns a specific HookConfig- Specified by:
getHookin interfaceAssemblyLineConfig- Parameters:
name- The name of the hook- Returns:
- The HookConfig with the given name
-
getHooks
public HooksConfig getHooks()
Returns the AssemblyLine's HooksConfig- Specified by:
getHooksin interfaceAssemblyLineConfig- Returns:
- The hooks of this AssemblyLine
-
getSettings
public BaseConfiguration getSettings()
Returns the AssemblyLine Settings- Specified by:
getSettingsin interfaceAssemblyLineConfig- Returns:
- The settings value
-
setSettings
public void setSettings(BaseConfiguration settings)
Sets the AssemblyLine Settings of the AssemblyLineConfig- Specified by:
setSettingsin interfaceAssemblyLineConfig- Parameters:
settings- The new settings value
-
getTaskInputParameters
@Deprecated public CallConfig getTaskInputParameters()
Deprecated.Use getSchema(true)Call Parameters- Specified by:
getTaskInputParametersin interfaceAssemblyLineConfig- Returns:
- The taskInputParameters value
-
getTaskOutputParameters
@Deprecated public CallConfig getTaskOutputParameters()
Deprecated.Use getSchema(false)Output Parameters- Specified by:
getTaskOutputParametersin interfaceAssemblyLineConfig- Returns:
- The taskOutputParameters value
-
getCheckpointConfig
public CheckpointConfig getCheckpointConfig()
Deprecated.Returns the Checkpoint info object- Specified by:
getCheckpointConfigin interfaceAssemblyLineConfig- Returns:
- The checkpointConfig value
-
getSandboxConfig
public SandboxConfig getSandboxConfig()
Returns the Sandbox config object- Specified by:
getSandboxConfigin interfaceAssemblyLineConfig- Returns:
- the Sandbox config object
-
getLogConfig
public LogConfig getLogConfig()
Returns the LogConfig object- Specified by:
getLogConfigin interfaceAssemblyLineConfig- Returns:
- The logConfig value
-
getDebug
public boolean getDebug()
Returns the debug flag for the object.- Specified by:
getDebugin interfaceAssemblyLineConfig- Specified by:
getDebugin interfaceBaseConfiguration- Overrides:
getDebugin classBaseConfigurationImpl- Returns:
- The debug value.
-
getDebug
public boolean getDebug(boolean defval)
Returns the debug flag for the object.- Specified by:
getDebugin interfaceAssemblyLineConfig- Specified by:
getDebugin interfaceBaseConfiguration- Overrides:
getDebugin classBaseConfigurationImpl- Parameters:
defval- The value to be returned, if the debug parameter cannot be found- Returns:
- The debug value.
-
setDebug
public void setDebug(boolean debug)
Sets the debug flag for the object.- Specified by:
setDebugin interfaceAssemblyLineConfig- Specified by:
setDebugin interfaceBaseConfiguration- Overrides:
setDebugin classBaseConfigurationImpl- Parameters:
debug- The new debug value
-
autoMapAllAttributes
public boolean autoMapAllAttributes(java.lang.Object connectorName) throws java.lang.ExceptionReturns the automap flag for the AssemblyLine- Specified by:
autoMapAllAttributesin interfaceAssemblyLineConfig- Parameters:
connectorName- The name of an AssemblyLine Component- Returns:
- true, if the AssemblyLine Component maps all the attributes
- Throws:
java.lang.Exception- if the check does not succeed
-
getClone
public java.lang.Object getClone() throws java.lang.ExceptionReturn self clone- Specified by:
getClonein interfaceBaseConfiguration- Overrides:
getClonein classBaseConfigurationImpl- Returns:
- The clone value
- Throws:
java.lang.Exception- An exception is thrown if this method fails.
-
getThreadOptions
public PropertyConfig getThreadOptions()
Returns the Thread options config in the AssemblyLine configuration- Specified by:
getThreadOptionsin interfaceAssemblyLineConfig- Returns:
- The threadOptions value
-
getSchema
public SchemaConfig getSchema(boolean input)
Returns the AssemblyLine's schema- Specified by:
getSchemain interfaceAssemblyLineConfig- Parameters:
input- if true, returns the input schema- Returns:
- The schema object
-
getSchema
public SchemaConfig getSchema(java.lang.String name)
Returns the AssemblyLine's schema by name ("Input"/"Output")- Specified by:
getSchemain interfaceAssemblyLineConfig- Parameters:
name- the name of the schema config to retrieve- Returns:
- The schema config object
-
getAttributeMap
public AttributeMapConfig getAttributeMap(boolean input)
Returns the AssemblyLine's attribute map- Specified by:
getAttributeMapin interfaceAssemblyLineConfig- Parameters:
input- if true, returns the input attribute map- Returns:
- The attribute map object
-
getAttributeMap
public AttributeMapConfig getAttributeMap(java.lang.String name)
Returns the AssemblyLine's attribute map by name ("Input"/"Output")- Specified by:
getAttributeMapin interfaceAssemblyLineConfig- Parameters:
name- the name of the attribute map config to retrieve- Returns:
- The attribute map config object
-
getComponents
@Deprecated public ContainerConfig getComponents()
Deprecated.in TDI 7.0Description copied from interface:AssemblyLineConfigReturns the components container- Specified by:
getComponentsin interfaceAssemblyLineConfig- Returns:
null
-
getComponentCount
@Deprecated public int getComponentCount()
Deprecated.Description copied from interface:AssemblyLineConfigReturns the number of components in the assemblyline- Specified by:
getComponentCountin interfaceAssemblyLineConfig- Returns:
0
-
getComponentByName
@Deprecated public BaseConfiguration getComponentByName(java.lang.String name)
Deprecated.in TDI 7.0Description copied from interface:AssemblyLineConfigReturns the component attribute of the AssemblyLineConfig object- Specified by:
getComponentByNamein interfaceAssemblyLineConfig- Parameters:
name-- Returns:
null
-
getComponent
@Deprecated public BaseConfiguration getComponent(int position)
Deprecated.in TDI 7.0Description copied from interface:AssemblyLineConfigReturns the component attribute of the AssemblyLineConfig object- Specified by:
getComponentin interfaceAssemblyLineConfig- Parameters:
position-- Returns:
null
-
removeComponent
@Deprecated public void removeComponent(int position)
Deprecated.in TDI 7.0Does nothing.- Specified by:
removeComponentin interfaceAssemblyLineConfig- Parameters:
position-
-
insertComponent
@Deprecated public void insertComponent(BaseConfiguration connector, int position)
Deprecated.in TDI 7.0Does nothing.- Specified by:
insertComponentin interfaceAssemblyLineConfig- Parameters:
connector-position-
-
moveComponent
@Deprecated public boolean moveComponent(int position, boolean up)Deprecated.in TDI 7.0Description copied from interface:AssemblyLineConfigMoves a connector one position up or down- Specified by:
moveComponentin interfaceAssemblyLineConfig- Parameters:
position-up-- Returns:
- false
-
renameComponent
public void renameComponent(java.lang.String oldName, java.lang.String newName) throws java.lang.ExceptionChanges the local name of a connector (the name used in script engines etc )- Specified by:
renameComponentin interfaceAssemblyLineConfig- Parameters:
oldName- The current namenewName- .New local name- Throws:
java.lang.Exception- if the provided name is invalid or there is already a component with the specified name.
-
getEntryFeedComponents
public ContainerConfig getEntryFeedComponents()
Returns the entry feed components container- Specified by:
getEntryFeedComponentsin interfaceAssemblyLineConfig- Returns:
- The entry feed components value
-
getDataFlowComponents
public ContainerConfig getDataFlowComponents()
Returns the data flow components container- Specified by:
getDataFlowComponentsin interfaceAssemblyLineConfig- Returns:
- The data flow components value
-
containsComponent
public boolean containsComponent(java.lang.String name)
Returns true if there is component (data flow or entry feed) named name- Specified by:
containsComponentin interfaceAssemblyLineConfig- Parameters:
name- The name of the config- Returns:
- True if it exists
-
getComponent
public BaseConfiguration getComponent(java.lang.String name)
Returns the component configuration- Specified by:
getComponentin interfaceAssemblyLineConfig- Parameters:
name- The name of the config- Returns:
- Null if it does not exist else a BaseConfiguration subclass
-
addComponent
public ContainerConfig addComponent(BaseConfiguration config)
This method adds a component configuration object to the correct component container- Specified by:
addComponentin interfaceAssemblyLineConfig- Parameters:
config- The configuration object- Returns:
- The container to which it was added (either DataFlow or EntryFeed container) or NULL if the config object was invalid.
-
removeComponent
public void removeComponent(java.lang.String name)
This method removes a named component configuration object- Specified by:
removeComponentin interfaceAssemblyLineConfig- Parameters:
name- The name of the component to remove.
-
removeComponent
public void removeComponent(BaseConfiguration component)
Removes a component from the assemblyline- Specified by:
removeComponentin interfaceAssemblyLineConfig- Parameters:
component- component config
-
getOperations
public ContainerConfig getOperations()
This method returns a list of supported operations- Specified by:
getOperationsin interfaceOperationsConfig- Returns:
ContainerConfigobject
-
getOperation
public OperationConfig getOperation(java.lang.String name)
This method returns the config for a given operation.- Specified by:
getOperationin interfaceOperationsConfig- Parameters:
name-- Returns:
OperationConfigobject
-
createOperation
public OperationConfig createOperation(java.lang.String name) throws java.lang.Exception
This method creates a new operation object.- Specified by:
createOperationin interfaceOperationsConfig- Parameters:
name-- Returns:
OperationConfigobject- Throws:
java.lang.Exception
-
getPublishedInitParams
public SchemaConfig getPublishedInitParams()
Returns the Published Initialization Parameter Schema for the AssemblyLine- Specified by:
getPublishedInitParamsin interfaceOperationsConfig
-
setPublishedInitParams
public void setPublishedInitParams(SchemaConfig schema) throws java.lang.Exception
Sets the Published Initialization Parameter Schema for the AssemblyLine- Specified by:
setPublishedInitParamsin interfaceOperationsConfig- Parameters:
schema- The new schema- Throws:
java.lang.Exception
-
setupInheritanceChain
public void setupInheritanceChain() throws java.lang.ExceptionEstablished the inheritance chain for this object.- Specified by:
setupInheritanceChainin interfaceBaseConfiguration- Overrides:
setupInheritanceChainin classBaseConfigurationImpl- Throws:
java.lang.Exception- if the operation could not be performed
-
getSimulationConfig
public SimulationConfig getSimulationConfig() throws java.lang.Exception
Retrieves the Simulation Configuration which corresponds to the AssemblyLine.- Specified by:
getSimulationConfigin interfaceAssemblyLineConfig- Returns:
- SimulationConfig object which represents the Simulation Configuration of the current AssemblyLine.
- Throws:
java.lang.Exception- if an error occurs while initializing the simulation config for the first time.
-
initSimulationConfig
public void initSimulationConfig() throws java.lang.ExceptionInitializes the Simulation config.- Throws:
java.lang.Exception- if the initialization fails
-
-