Package com.ibm.di.config.base
Class ReconnectConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.ReconnectConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration,MetamergeConfigChangeListener,ReconnectConfig,java.io.Serializable
public class ReconnectConfigImpl extends BaseConfigurationImpl implements ReconnectConfig
Implements (@link ReconnectConfig}- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTO_RECONNECTstatic java.lang.StringINIT_RECONNECTstatic java.lang.StringNUMBER_OF_RETRIESstatic java.lang.StringRETRY_DELAYstatic java.lang.StringSKIP_FORWARD-
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
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 ReconnectConfigImpl()ReconnectConfigImpl(java.lang.Object config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAutoReconnect()booleangetAutoSkipForward()Should we automatically skip forward after a Reconnect.java.lang.ObjectgetClone()Return self cloneintgetDelay()Delay between retries (in seconds)intgetFailbackAfter()java.lang.StringgetFailoverConnectorName()booleangetFailoverOption()booleangetInitReconnect()ContainerConfiggetReconnectRules()intgetRetries()Number of retriesvoidinit()Called after internal data structure is set.ReconnectRuleConfignewReconnectRule()Create a new reconnect rule and add it to the internal container.voidremoveParameterValues()Remove all parameter values, to prepare for inheritancevoidsetAutoSkipForwardUnlessAlreadySet(java.lang.Object value)Set the value of autoSkipForward, unless it is already set to a value.voidsetInheritsFrom(BaseConfiguration inheritFrom)We override this method to change the inherited object if we inherit from a connector.-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebug, 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, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, 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, getDebug, getDebug, 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, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setModTS, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Field Detail
-
AUTO_RECONNECT
public static final java.lang.String AUTO_RECONNECT
- See Also:
- Constant Field Values
-
INIT_RECONNECT
public static final java.lang.String INIT_RECONNECT
- See Also:
- Constant Field Values
-
NUMBER_OF_RETRIES
public static final java.lang.String NUMBER_OF_RETRIES
- See Also:
- Constant Field Values
-
RETRY_DELAY
public static final java.lang.String RETRY_DELAY
- See Also:
- Constant Field Values
-
SKIP_FORWARD
public static final java.lang.String SKIP_FORWARD
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws java.lang.ExceptionCalled after internal data structure is set.- Specified by:
initin interfaceBaseConfiguration- Overrides:
initin classBaseConfigurationImpl- Throws:
java.lang.Exception- if the initialization fails.
-
setInheritsFrom
public void setInheritsFrom(BaseConfiguration inheritFrom)
We override this method to change the inherited object if we inherit from a connector.- Specified by:
setInheritsFromin interfaceBaseConfiguration- Overrides:
setInheritsFromin classBaseConfigurationImpl- Parameters:
inheritFrom- The new inheritsFrom value.
-
getClone
public java.lang.Object getClone() throws java.lang.ExceptionReturn self clone- Specified by:
getClonein interfaceBaseConfiguration- Overrides:
getClonein classBaseConfigurationImpl- Returns:
- a cloned version of this object.
- Throws:
java.lang.Exception
-
getAutoReconnect
public boolean getAutoReconnect()
- Specified by:
getAutoReconnectin interfaceReconnectConfig
-
getInitReconnect
public boolean getInitReconnect()
- Specified by:
getInitReconnectin interfaceReconnectConfig
-
getRetries
public int getRetries()
Description copied from interface:ReconnectConfigNumber of retries- Specified by:
getRetriesin interfaceReconnectConfig
-
getDelay
public int getDelay()
Description copied from interface:ReconnectConfigDelay between retries (in seconds)- Specified by:
getDelayin interfaceReconnectConfig
-
getAutoSkipForward
public boolean getAutoSkipForward()
Description copied from interface:ReconnectConfigShould we automatically skip forward after a Reconnect. This is only meaningful for Iterators.- Specified by:
getAutoSkipForwardin interfaceReconnectConfig
-
setAutoSkipForwardUnlessAlreadySet
public void setAutoSkipForwardUnlessAlreadySet(java.lang.Object value)
Description copied from interface:ReconnectConfigSet the value of autoSkipForward, unless it is already set to a value. For internal use.- Specified by:
setAutoSkipForwardUnlessAlreadySetin interfaceReconnectConfig- Parameters:
value- The new value
-
removeParameterValues
public void removeParameterValues()
Description copied from interface:ReconnectConfigRemove all parameter values, to prepare for inheritance- Specified by:
removeParameterValuesin interfaceReconnectConfig
-
getReconnectRules
public ContainerConfig getReconnectRules()
- Specified by:
getReconnectRulesin interfaceReconnectConfig- Returns:
- The container with the reconnect rules of this configuration object.
-
newReconnectRule
public ReconnectRuleConfig newReconnectRule() throws java.lang.Exception
Create a new reconnect rule and add it to the internal container.- Specified by:
newReconnectRulein interfaceReconnectConfig- Returns:
- The new reconnect rule.
- Throws:
java.lang.Exception- A problem while creating the rule.
-
getFailbackAfter
public int getFailbackAfter()
- Specified by:
getFailbackAfterin interfaceReconnectConfig- Returns:
- seconds to wait before attempting an automatic Failback.
-
getFailoverConnectorName
public java.lang.String getFailoverConnectorName()
- Specified by:
getFailoverConnectorNamein interfaceReconnectConfig- Returns:
- the name of the Connector used for Failover.
-
getFailoverOption
public boolean getFailoverOption()
- Specified by:
getFailoverOptionin interfaceReconnectConfig- Returns:
- true if Failover is enabled for this Connector.
-
-