Package com.ibm.di.config.base
Class ReconnectRuleConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.ReconnectRuleConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration
,MetamergeConfigChangeListener
,ReconnectRuleConfig
,java.io.Serializable
public class ReconnectRuleConfigImpl extends BaseConfigurationImpl implements ReconnectRuleConfig
This class implements reconnect rule configuration methods.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTION_PARAM_NAME
Reconnect action parameter.static java.lang.String
EXCEPTION_CLASS_PARAM_NAME
Exception class parameter.static java.lang.String
REGULAR_EXPRESSION_PARAM_NAME
Regular expression for exception messages parameter.-
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 ReconnectRuleConfigImpl()
Create an empty reconnect rule configuration.ReconnectRuleConfigImpl(java.lang.Object config)
Create a reconnect rule configuration from the specified raw configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAction()
java.lang.Object
getClone()
java.lang.String
getExceptionClass()
java.lang.String
getExceptionMessageRegExp()
void
validate()
Validate the contents of this reconnect rule.-
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, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, performNotifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, 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, 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, init, isExpression, isParameterLocal, isProtectedParameter, nameForChild, notifyChange, notifyChange, notifyChange, reattachToParent, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebug, 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, setupInheritanceChain, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
-
-
-
-
Field Detail
-
EXCEPTION_CLASS_PARAM_NAME
public static final java.lang.String EXCEPTION_CLASS_PARAM_NAME
Exception class parameter.- See Also:
- Constant Field Values
-
REGULAR_EXPRESSION_PARAM_NAME
public static final java.lang.String REGULAR_EXPRESSION_PARAM_NAME
Regular expression for exception messages parameter.- See Also:
- Constant Field Values
-
ACTION_PARAM_NAME
public static final java.lang.String ACTION_PARAM_NAME
Reconnect action parameter.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReconnectRuleConfigImpl
public ReconnectRuleConfigImpl()
Create an empty reconnect rule configuration.
-
ReconnectRuleConfigImpl
public ReconnectRuleConfigImpl(java.lang.Object config)
Create a reconnect rule configuration from the specified raw configuration.- Parameters:
config
- Raw configuration.
-
-
Method Detail
-
getAction
public java.lang.String getAction()
- Specified by:
getAction
in interfaceReconnectRuleConfig
- Returns:
- What action should be taken if an error occurs and that error matches the rule. Will either be null, empty string or one of 'reconnect' or 'error'. If null or empty, the engine that interprets the rule should use its default action.
-
getExceptionClass
public java.lang.String getExceptionClass()
- Specified by:
getExceptionClass
in interfaceReconnectRuleConfig
- Returns:
- The Java class of exceptions to which this rule applies. If null or empty, the rule applies to all classes of exceptions.
-
getExceptionMessageRegExp
public java.lang.String getExceptionMessageRegExp()
- Specified by:
getExceptionMessageRegExp
in interfaceReconnectRuleConfig
- Returns:
- A regular expression that matches the messages of exceptions to which this rule applies. If null or empty, the rule applies to all exception messages.
-
validate
public void validate() throws java.lang.Exception
Validate the contents of this reconnect rule.- Specified by:
validate
in interfaceReconnectRuleConfig
- Throws:
java.lang.Exception
- If the reconnect action is neither null, an empty string, 'error' nor 'reconnect'. If the class definition of the exception class is not available to the JVM.
-
getClone
public java.lang.Object getClone() throws java.lang.Exception
- Specified by:
getClone
in interfaceBaseConfiguration
- Overrides:
getClone
in classBaseConfigurationImpl
- Returns:
- a cloned version of this object.
- Throws:
java.lang.Exception
-
-