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.String
AUTO_RECONNECT
static java.lang.String
INIT_RECONNECT
static java.lang.String
NUMBER_OF_RETRIES
static java.lang.String
RETRY_DELAY
static java.lang.String
SKIP_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 boolean
getAutoReconnect()
boolean
getAutoSkipForward()
Should we automatically skip forward after a Reconnect.java.lang.Object
getClone()
Return self cloneint
getDelay()
Delay between retries (in seconds)int
getFailbackAfter()
java.lang.String
getFailoverConnectorName()
boolean
getFailoverOption()
boolean
getInitReconnect()
ContainerConfig
getReconnectRules()
int
getRetries()
Number of retriesvoid
init()
Called after internal data structure is set.ReconnectRuleConfig
newReconnectRule()
Create a new reconnect rule and add it to the internal container.void
removeParameterValues()
Remove all parameter values, to prepare for inheritancevoid
setAutoSkipForwardUnlessAlreadySet(java.lang.Object value)
Set the value of autoSkipForward, unless it is already set to a value.void
setInheritsFrom(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.Exception
Called after internal data structure is set.- Specified by:
init
in interfaceBaseConfiguration
- Overrides:
init
in 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:
setInheritsFrom
in interfaceBaseConfiguration
- Overrides:
setInheritsFrom
in classBaseConfigurationImpl
- Parameters:
inheritFrom
- The new inheritsFrom value.
-
getClone
public java.lang.Object getClone() throws java.lang.Exception
Return self clone- Specified by:
getClone
in interfaceBaseConfiguration
- Overrides:
getClone
in classBaseConfigurationImpl
- Returns:
- a cloned version of this object.
- Throws:
java.lang.Exception
-
getAutoReconnect
public boolean getAutoReconnect()
- Specified by:
getAutoReconnect
in interfaceReconnectConfig
-
getInitReconnect
public boolean getInitReconnect()
- Specified by:
getInitReconnect
in interfaceReconnectConfig
-
getRetries
public int getRetries()
Description copied from interface:ReconnectConfig
Number of retries- Specified by:
getRetries
in interfaceReconnectConfig
-
getDelay
public int getDelay()
Description copied from interface:ReconnectConfig
Delay between retries (in seconds)- Specified by:
getDelay
in interfaceReconnectConfig
-
getAutoSkipForward
public boolean getAutoSkipForward()
Description copied from interface:ReconnectConfig
Should we automatically skip forward after a Reconnect. This is only meaningful for Iterators.- Specified by:
getAutoSkipForward
in interfaceReconnectConfig
-
setAutoSkipForwardUnlessAlreadySet
public void setAutoSkipForwardUnlessAlreadySet(java.lang.Object value)
Description copied from interface:ReconnectConfig
Set the value of autoSkipForward, unless it is already set to a value. For internal use.- Specified by:
setAutoSkipForwardUnlessAlreadySet
in interfaceReconnectConfig
- Parameters:
value
- The new value
-
removeParameterValues
public void removeParameterValues()
Description copied from interface:ReconnectConfig
Remove all parameter values, to prepare for inheritance- Specified by:
removeParameterValues
in interfaceReconnectConfig
-
getReconnectRules
public ContainerConfig getReconnectRules()
- Specified by:
getReconnectRules
in 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:
newReconnectRule
in interfaceReconnectConfig
- Returns:
- The new reconnect rule.
- Throws:
java.lang.Exception
- A problem while creating the rule.
-
getFailbackAfter
public int getFailbackAfter()
- Specified by:
getFailbackAfter
in interfaceReconnectConfig
- Returns:
- seconds to wait before attempting an automatic Failback.
-
getFailoverConnectorName
public java.lang.String getFailoverConnectorName()
- Specified by:
getFailoverConnectorName
in interfaceReconnectConfig
- Returns:
- the name of the Connector used for Failover.
-
getFailoverOption
public boolean getFailoverOption()
- Specified by:
getFailoverOption
in interfaceReconnectConfig
- Returns:
- true if Failover is enabled for this Connector.
-
-