|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.base.BaseConfigurationImpl
com.ibm.di.config.base.ConnectorConfigImpl
public class ConnectorConfigImpl
This class implements the TDI Connector configuration.
Field Summary | |
---|---|
protected ParserConfig |
parserConfig
Parser configuration. |
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl |
---|
NAME |
Fields inherited from interface com.ibm.di.config.interfaces.ConnectorConfig |
---|
ADDONLY_MODE, BRANCH_MODE, CALL_REPLY_MODE, COMP_INIT_DEFAULT, COMP_INIT_EVERYTIME, COMP_INIT_MODIFIED, COMP_INIT_USE, DELETE_MODE, DELTA_MODE, DELTA_NO_DELETE, DELTA_NORMAL, DISABLED_STATE, ENABLED_STATE, FUNCTION_MODE, INPUT_MAP_NAME, ITERATOR_MODE, LOOKUP_MODE, MAPPING_MODE, OUTPUT_MAP_NAME, PASSIVE_STATE, REPLY_MODE, SCHEMA_INPUT, SCHEMA_OUTPUT, SCRIPT_MODE, SERVER_MODE, SERVER_OPTION_CONNECTOR, SERVER_OPTION_ENTRY, UPDATE_MODE |
Constructor Summary | |
---|---|
ConnectorConfigImpl()
Non-arg constructor |
|
ConnectorConfigImpl(java.lang.Object config)
Constructor with one parameter. |
Method Summary | |
---|---|
OperationConfig |
createOperation(java.lang.String name)
This method creates a new operation object. |
boolean |
flatten(java.util.List<java.lang.String> excludedNS)
This method combines all values from this object and its inherited objects into one single config object. |
AttributeMapConfig |
getAttributeMap()
Attribute Maps |
AttributeMapConfig |
getAttributeMap(boolean input)
Gets the attributeMap attribute of the ConnectorConfig object |
AttributeMapConfig |
getAttributeMap(java.lang.Object name)
Gets the attributeMap attribute of the ConnectorConfig object |
CheckpointConfig |
getCheckpointConfig()
|
java.lang.Object |
getClone()
|
boolean |
getComputeChanges()
Returns the compute-changes flag for Update mode connector. |
RawConnectorConfig |
getConnectionConfig()
Connection parameters |
java.lang.String |
getConnectorScript()
Script connectors |
int |
getDeltaBehavior()
|
DeltaConfig |
getDeltaConfig()
|
boolean |
getDeltaStrict()
|
boolean |
getEnabled()
Gets the enabled attribute of this object. |
HooksConfig |
getHooks()
Hooks |
int |
getInitializeOption()
|
LinkCriteriaConfig |
getLinkCriteria()
Link Criteria |
java.lang.String |
getMode()
|
OperationConfig |
getOperation(java.lang.String name)
This method returns the config for a given operation |
java.lang.String |
getOperationCarrier()
|
boolean |
getOperationCarrierIsProperty()
|
ContainerConfig |
getOperations()
This method returns a list of supported operations |
ParserConfig |
getParserConfig()
Associated Parser configuration |
PoolDefConfig |
getPoolDefConfig()
|
PoolInstanceConfig |
getPoolInstanceConfig()
|
SchemaConfig |
getPublishedInitParams()
Returns the Published Initialization Parameter Schema for the AssemblyLine |
ReconnectConfig |
getReconnectConfig()
|
java.util.List<java.lang.String> |
getReferences(java.util.List<java.lang.String> list)
|
boolean |
getReplyRequired()
|
SandboxConfig |
getSandboxConfig()
|
SchemaConfig |
getSchema(boolean input)
|
SchemaConfig |
getSchema(java.lang.String name)
|
java.lang.String |
getServerOption()
|
boolean |
getSkipLookup()
Gets the Skip Lookup option from the Connector. |
java.lang.String |
getState()
State (typically used in the AssemblyLine) |
void |
init()
This method initializes the ConnectorConfig object, adds children to it and initializes them too. |
boolean |
isEntryFeed()
|
void |
setAttributeMap(AttributeMapConfig attributeMap)
Sets the attributeMap attribute of the ConnectorConfig object |
void |
setAttributeMap(AttributeMapConfig attributeMap,
boolean input)
Sets the attributeMap attribute of the ConnectorConfig object |
void |
setComputeChanges(boolean cc)
Sets the compute-changes flag for Update mode connector. |
void |
setConnectionConfig(RawConnectorConfig rcc)
Sets the connectionConfig attribute of the connector config. |
void |
setConnectorScript(java.lang.String script)
Sets the connectorScript attribute of the ConnectorConfig object |
void |
setDeltaBehavior(int behavior)
Sets delta behavior. |
void |
setDeltaStrict(boolean strict)
Sets the delta strict flag. |
void |
setEnabled(boolean enabled)
Sets the enabled attribute of this object. |
void |
setInheritsFromRef(java.lang.String ref)
Sets the name of the object from which this object should inherit its values. |
void |
setInitializeOption(int option)
This method sets the the initialization option for the component |
void |
setLinkCriteria(LinkCriteriaConfig linkCriteria)
Sets the linkCriteria attribute of the ConnectorConfig object |
void |
setMode(java.lang.String mode)
Sets the mode attribute of the ConnectorConfig object |
void |
setOperationCarrier(java.lang.String name)
This method sets the name of the operation carrier |
void |
setOperationCarrierIsProperty(boolean isproperty)
This method sets whether the operation carrier is an entry attribute or entry property. |
void |
setParserConfig(ParserConfig parser)
Sets the parserConfig attribute of the ConnectorConfig object |
void |
setPublishedInitParams(SchemaConfig schema)
Sets the Published Initialization Parameter Schema for the AssemblyLine |
void |
setSkipLookup(boolean skipLookup)
Sets the Skip Lookup option to the Connector. |
void |
setState(java.lang.String state)
Sets the state attribute of the ConnectorConfig object |
void |
setupInheritanceChain()
Established the inheritance chain for this object. |
boolean |
supportsSkipLookup()
Checks whether the Connector supports Skip Lookup. |
void |
updateInheritsFrom(java.lang.String ref)
Sets the name of the object from which this object should inherit its values and calls the setupInheritanceChain to activate the change. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ParserConfig parserConfig
Constructor Detail |
---|
public ConnectorConfigImpl()
public ConnectorConfigImpl(java.lang.Object config)
config
- Method Detail |
---|
public void init() throws java.lang.Exception
init
in interface BaseConfiguration
init
in class BaseConfigurationImpl
java.lang.Exception
- if could not parse or initialize some configurationpublic void setupInheritanceChain() throws java.lang.Exception
setupInheritanceChain
in interface BaseConfiguration
setupInheritanceChain
in class BaseConfigurationImpl
java.lang.Exception
- if the operation could not be performedpublic void updateInheritsFrom(java.lang.String ref) throws java.lang.Exception
updateInheritsFrom
in interface BaseConfiguration
updateInheritsFrom
in class BaseConfigurationImpl
ref
- The new inheritsFromRef value
java.lang.Exception
- if the operation does not succeedpublic void setInheritsFromRef(java.lang.String ref)
setInheritsFromRef
in interface BaseConfiguration
setInheritsFromRef
in class BaseConfigurationImpl
ref
- The new inheritsFromRef valuepublic java.lang.String getMode()
getMode
in interface ConnectorConfig
public void setMode(java.lang.String mode)
setMode
in interface ConnectorConfig
mode
- The new mode valuepublic SchemaConfig getSchema(java.lang.String name)
getSchema
in interface ConnectorConfig
name
- name of the schema
public SchemaConfig getSchema(boolean input)
getSchema
in interface ConnectorConfig
input
- input if true
return Input schema else Output
schema
public DeltaConfig getDeltaConfig()
getDeltaConfig
in interface ConnectorConfig
public PoolDefConfig getPoolDefConfig()
getPoolDefConfig
in interface ConnectorConfig
public PoolInstanceConfig getPoolInstanceConfig()
getPoolInstanceConfig
in interface ConnectorConfig
public java.lang.String getConnectorScript()
getConnectorScript
in interface ConnectorConfig
public void setConnectorScript(java.lang.String script)
setConnectorScript
in interface ConnectorConfig
script
- The new connectorScript valuepublic AttributeMapConfig getAttributeMap(boolean input)
getAttributeMap
in interface ConnectorConfig
input
- a boolean value specifying whether the input or output
Attribute map to retrieve
public AttributeMapConfig getAttributeMap(java.lang.Object name)
getAttributeMap
in interface ConnectorConfig
name
- the name of the Attribute map to retrieve
public AttributeMapConfig getAttributeMap()
getAttributeMap
in interface ConnectorConfig
public void setAttributeMap(AttributeMapConfig attributeMap)
setAttributeMap
in interface ConnectorConfig
attributeMap
- The new attributeMap valuepublic void setAttributeMap(AttributeMapConfig attributeMap, boolean input)
setAttributeMap
in interface ConnectorConfig
attributeMap
- The new attributeMap valueinput
- The new attributeMap valuepublic LinkCriteriaConfig getLinkCriteria()
getLinkCriteria
in interface ConnectorConfig
public void setLinkCriteria(LinkCriteriaConfig linkCriteria)
setLinkCriteria
in interface ConnectorConfig
linkCriteria
- The new linkCriteria valuepublic HooksConfig getHooks()
getHooks
in interface ConnectorConfig
public RawConnectorConfig getConnectionConfig()
getConnectionConfig
in interface ConnectorConfig
public void setConnectionConfig(RawConnectorConfig rcc)
rcc
- new RawConnectorConfig object to setpublic ParserConfig getParserConfig()
ConnectorConfig
getParserConfig
in interface ConnectorConfig
public void setParserConfig(ParserConfig parser)
setParserConfig
in interface ConnectorConfig
parser
- The new parserConfig valuepublic java.lang.String getState()
getState
in interface ConnectorConfig
public void setState(java.lang.String state)
setState
in interface ConnectorConfig
state
- The new statepublic boolean getEnabled()
getEnabled
in interface BaseConfiguration
getEnabled
in interface ConnectorConfig
getEnabled
in class BaseConfigurationImpl
public void setEnabled(boolean enabled)
setEnabled
in interface BaseConfiguration
setEnabled
in interface ConnectorConfig
setEnabled
in class BaseConfigurationImpl
enabled
- true
for enabling; false
otherwise.public boolean getComputeChanges()
getComputeChanges
in interface ConnectorConfig
public void setComputeChanges(boolean cc)
setComputeChanges
in interface ConnectorConfig
cc
- The compute-change flag to set.public void setSkipLookup(boolean skipLookup)
setSkipLookup
in interface ConnectorConfig
skipLookup
- The new value of the Skip Lookup option.public boolean getSkipLookup()
getSkipLookup
in interface ConnectorConfig
public boolean supportsSkipLookup()
supportsSkipLookup
in interface ConnectorConfig
public CheckpointConfig getCheckpointConfig()
getCheckpointConfig
in interface ConnectorConfig
public SandboxConfig getSandboxConfig()
getSandboxConfig
in interface ConnectorConfig
public int getDeltaBehavior()
getDeltaBehavior
in interface ConnectorConfig
public void setDeltaBehavior(int behavior)
setDeltaBehavior
in interface ConnectorConfig
public boolean getDeltaStrict()
getDeltaStrict
in interface ConnectorConfig
public void setDeltaStrict(boolean strict)
setDeltaStrict
in interface ConnectorConfig
public java.lang.String getServerOption()
getServerOption
in interface ConnectorConfig
public boolean getReplyRequired()
getReplyRequired
in interface ConnectorConfig
public boolean isEntryFeed()
isEntryFeed
in interface ConnectorConfig
public ContainerConfig getOperations()
getOperations
in interface OperationsConfig
public OperationConfig getOperation(java.lang.String name)
getOperation
in interface OperationsConfig
public OperationConfig createOperation(java.lang.String name) throws java.lang.Exception
createOperation
in interface OperationsConfig
java.lang.Exception
public java.lang.String getOperationCarrier()
getOperationCarrier
in interface ConnectorConfig
public void setOperationCarrier(java.lang.String name)
setOperationCarrier
in interface ConnectorConfig
public boolean getOperationCarrierIsProperty()
getOperationCarrierIsProperty
in interface ConnectorConfig
public void setOperationCarrierIsProperty(boolean isproperty)
setOperationCarrierIsProperty
in interface ConnectorConfig
public boolean flatten(java.util.List<java.lang.String> excludedNS) throws java.lang.Exception
flatten
in interface BaseConfiguration
flatten
in class BaseConfigurationImpl
excludedNS
- List of namespaces to exclude from flattening
true
if object attempted flattening, FALSE is this
object inherits from an excluded namespace or has no inheritance
java.lang.Exception
public java.util.List<java.lang.String> getReferences(java.util.List<java.lang.String> list)
getReferences
in interface BaseConfiguration
getReferences
in class BaseConfigurationImpl
list
- If non-null, the object must use the provided list rather than
creating its own
public ReconnectConfig getReconnectConfig()
getReconnectConfig
in interface ConnectorConfig
public int getInitializeOption()
getInitializeOption
in interface ConnectorConfig
public void setInitializeOption(int option)
setInitializeOption
in interface ConnectorConfig
public java.lang.Object getClone() throws java.lang.Exception
getClone
in interface BaseConfiguration
getClone
in class BaseConfigurationImpl
java.lang.Exception
public SchemaConfig getPublishedInitParams()
getPublishedInitParams
in interface OperationsConfig
public void setPublishedInitParams(SchemaConfig schema)
setPublishedInitParams
in interface OperationsConfig
schema
- The new schema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |