com.ibm.di.config.base
Class ReconnectConfigImpl

java.lang.Object
  extended by com.ibm.di.config.base.BaseConfigurationImpl
      extended by com.ibm.di.config.base.ReconnectConfigImpl
All Implemented Interfaces:
BaseConfiguration, MetamergeConfigChangeListener, ReconnectConfig, Serializable

public class ReconnectConfigImpl
extends BaseConfigurationImpl
implements ReconnectConfig

Implements (@link ReconnectConfig}

See Also:
Serialized Form

Field Summary
static String AUTO_RECONNECT
           
static String INIT_RECONNECT
           
static String NUMBER_OF_RETRIES
           
static String RETRY_DELAY
           
static 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
ReconnectConfigImpl()
           
ReconnectConfigImpl(Object config)
           
 
Method Summary
 boolean getAutoReconnect()
           
 boolean getAutoSkipForward()
          Should we automatically skip forward after a Reconnect.
 Object getClone()
          Return self clone
 int getDelay()
          Delay between retries (in seconds)
 boolean getInitReconnect()
           
 ContainerConfig getReconnectRules()
          
 int getRetries()
          Number of retries
 void 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 inheritance
 void setAutoSkipForwardUnlessAlreadySet(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, 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, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, 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, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterRaw, getParent, getPath, getReferences, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isExpression, isParameterLocal, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, setDebugBreak, setEnabled, setFlags, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
 

Field Detail

AUTO_RECONNECT

public static final String AUTO_RECONNECT
See Also:
Constant Field Values

INIT_RECONNECT

public static final String INIT_RECONNECT
See Also:
Constant Field Values

NUMBER_OF_RETRIES

public static final String NUMBER_OF_RETRIES
See Also:
Constant Field Values

RETRY_DELAY

public static final String RETRY_DELAY
See Also:
Constant Field Values

SKIP_FORWARD

public static final String SKIP_FORWARD
See Also:
Constant Field Values
Constructor Detail

ReconnectConfigImpl

public ReconnectConfigImpl()

ReconnectConfigImpl

public ReconnectConfigImpl(Object config)
Method Detail

init

public void init()
          throws Exception
Called after internal data structure is set.

Specified by:
init in interface BaseConfiguration
Overrides:
init in class BaseConfigurationImpl
Throws:
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 interface BaseConfiguration
Overrides:
setInheritsFrom in class BaseConfigurationImpl
Parameters:
inheritFrom - The new inheritsFrom value.

getClone

public Object getClone()
                throws Exception
Return self clone

Specified by:
getClone in interface BaseConfiguration
Overrides:
getClone in class BaseConfigurationImpl
Returns:
a cloned version of this object.
Throws:
Exception

getAutoReconnect

public boolean getAutoReconnect()
Specified by:
getAutoReconnect in interface ReconnectConfig

getInitReconnect

public boolean getInitReconnect()
Specified by:
getInitReconnect in interface ReconnectConfig

getRetries

public int getRetries()
Description copied from interface: ReconnectConfig
Number of retries

Specified by:
getRetries in interface ReconnectConfig

getDelay

public int getDelay()
Description copied from interface: ReconnectConfig
Delay between retries (in seconds)

Specified by:
getDelay in interface ReconnectConfig

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 interface ReconnectConfig

setAutoSkipForwardUnlessAlreadySet

public void setAutoSkipForwardUnlessAlreadySet(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 interface ReconnectConfig
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 interface ReconnectConfig

getReconnectRules

public ContainerConfig getReconnectRules()

Specified by:
getReconnectRules in interface ReconnectConfig
Returns:
The container with the reconnect rules of this configuration object.

newReconnectRule

public ReconnectRuleConfig newReconnectRule()
                                     throws Exception
Create a new reconnect rule and add it to the internal container.

Specified by:
newReconnectRule in interface ReconnectConfig
Returns:
The new reconnect rule.
Throws:
Exception - A problem while creating the rule.