com.ibm.di.config.base
Class EventHandlerConfigImpl

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

public class EventHandlerConfigImpl
extends BaseConfigurationImpl
implements EventHandlerConfig

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.di.config.base.BaseConfigurationImpl
NAME
 
Fields inherited from interface com.ibm.di.config.interfaces.BaseConfiguration
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, SUBTREE
 
Constructor Summary
EventHandlerConfigImpl()
           
EventHandlerConfigImpl(Object config)
           
 
Method Summary
 EventHandlerActionConfig getAction(int index)
           
 EventHandlerActionConfig getAction(Object name)
           
 int getActionCount()
           
 AttributeMapConfig getAttributeMap(boolean input)
          Gets the attributeMap attribute of the ConnectorConfig object
 Object getClone()
          Returns a self clone
 RawConnectorConfig getConnectionConfig()
           
 boolean getDebug(boolean defval)
          Returns the debug flag for the object.
 boolean getEnabled()
          Gets the enabled attribute of the BaseConfiguration object
 String getEpilog()
           
 String getJavaClass()
           
 LogConfig getLogConfig()
          Returns the LogConfig object
 String getProlog()
           
 SandboxConfig getSandboxConfig()
          Returns the Sandbox object
 String getShutdownScript()
           
 void init()
          init - method called after internal data structure is set
 void moveAction(int fromIndex, int toIndex)
           
 EventHandlerActionConfig newAction(Object name)
           
 void removeAction(int index)
           
 int setAction(int index, EventHandlerActionConfig action)
           
 void setDebug(boolean value)
          Common method - Sets the debug flag for the object
 void setEnabled(boolean autoStart)
          Gets the enabled attribute of the BaseConfiguration object
 void setEpilog(String epilog)
           
 void setInheritsFrom(BaseConfiguration inheritFrom)
          We override this method to implicitly set the object from which the raw connector config inherits its values from.
 void setJavaClass(String className)
           
 void setProlog(String prolog)
           
 void setShutdownScript(String script)
           
 void setupInheritanceChain()
          Established the inheritance chain for this object.
 
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebugBreak, getFlags, getInheritsFrom, getInheritsFromRef, getIntegerParameter, getKeys, getLogEnabled, getMetamergeConfig, getModified, getName, getNamespace, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParameter, getParameter, getParameter, getParameterPropertySource, getParameterPropertySourceFromValue, getParameterRaw, getParent, getParentName, getPath, getReferences, getResHash, getScript, getScriptEngine, getShortName, getStringParameter, getSubstitutionMap, getUseListeners, getUserComment, hasParameter, isParameterLocal, nameForChild, notifyChange, notifyChange, performNotifyChange, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebugBreak, setFlags, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, 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, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getData, getDataIterator, getDebug, getDebugBreak, 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, isParameterLocal, nameForChild, notifyChange, notifyChange, removeListener, removeParameter, search, search, setBooleanParameter, setChild, setData, setDebugBreak, setFlags, setInheritsFromRef, setIntegerParameter, setLogEnabled, setMetamergeConfig, setModified, setName, setName, setNullBehavior, setNullBehaviorValue, setNullDefinition, setNullDefinitionValue, setParameter, setParameter, setParameterPropertySource, setParent, setProtectedParameter, setScript, setScriptEngine, setStringParameter, setSubstitutionMap, setUseListeners, setUserComment, size, toEntry, updateInheritsFrom, willFlatten
 

Constructor Detail

EventHandlerConfigImpl

public EventHandlerConfigImpl()

EventHandlerConfigImpl

public EventHandlerConfigImpl(Object config)
Method Detail

init

public void init()
          throws Exception
Description copied from class: BaseConfigurationImpl
init - method called after internal data structure is set

Specified by:
init in interface BaseConfiguration
Overrides:
init in class BaseConfigurationImpl
Throws:
Exception - if the initialization fails

setupInheritanceChain

public void setupInheritanceChain()
                           throws Exception
Description copied from class: BaseConfigurationImpl
Established the inheritance chain for this object.

Specified by:
setupInheritanceChain in interface BaseConfiguration
Overrides:
setupInheritanceChain in class BaseConfigurationImpl
Throws:
Exception - if the operation does not succeed

setInheritsFrom

public void setInheritsFrom(BaseConfiguration inheritFrom)
We override this method to implicitly set the object from which the raw connector config inherits its values from.

Specified by:
setInheritsFrom in interface BaseConfiguration
Overrides:
setInheritsFrom in class BaseConfigurationImpl
Parameters:
inheritFrom - The new inheritsFrom value

getEnabled

public boolean getEnabled()
Description copied from interface: BaseConfiguration
Gets the enabled attribute of the BaseConfiguration object

Specified by:
getEnabled in interface BaseConfiguration
Overrides:
getEnabled in class BaseConfigurationImpl
Returns:
The nullBehaviorValue value

setEnabled

public void setEnabled(boolean autoStart)
Description copied from interface: BaseConfiguration
Gets the enabled attribute of the BaseConfiguration object

Specified by:
setEnabled in interface BaseConfiguration
Overrides:
setEnabled in class BaseConfigurationImpl

getDebug

public boolean getDebug(boolean defval)
Description copied from interface: BaseConfiguration
Returns the debug flag for the object.

Specified by:
getDebug in interface BaseConfiguration
Overrides:
getDebug in class BaseConfigurationImpl
Parameters:
defval - The value to be returned, if the debug parameter cannot be found
Returns:
The debug value

setDebug

public void setDebug(boolean value)
Description copied from interface: BaseConfiguration
Common method - Sets the debug flag for the object

Specified by:
setDebug in interface BaseConfiguration
Overrides:
setDebug in class BaseConfigurationImpl
Parameters:
value - The new debug value

getProlog

public String getProlog()
Specified by:
getProlog in interface EventHandlerConfig

setProlog

public void setProlog(String prolog)
Specified by:
setProlog in interface EventHandlerConfig

getEpilog

public String getEpilog()
Specified by:
getEpilog in interface EventHandlerConfig

setEpilog

public void setEpilog(String epilog)
Specified by:
setEpilog in interface EventHandlerConfig

getShutdownScript

public String getShutdownScript()
Specified by:
getShutdownScript in interface EventHandlerConfig

setShutdownScript

public void setShutdownScript(String script)
Specified by:
setShutdownScript in interface EventHandlerConfig

getConnectionConfig

public RawConnectorConfig getConnectionConfig()
Specified by:
getConnectionConfig in interface EventHandlerConfig

getAction

public EventHandlerActionConfig getAction(int index)
Specified by:
getAction in interface EventHandlerConfig

getAction

public EventHandlerActionConfig getAction(Object name)
Specified by:
getAction in interface EventHandlerConfig

setAction

public int setAction(int index,
                     EventHandlerActionConfig action)
Specified by:
setAction in interface EventHandlerConfig

moveAction

public void moveAction(int fromIndex,
                       int toIndex)
Specified by:
moveAction in interface EventHandlerConfig

removeAction

public void removeAction(int index)
Specified by:
removeAction in interface EventHandlerConfig

newAction

public EventHandlerActionConfig newAction(Object name)
Specified by:
newAction in interface EventHandlerConfig

getActionCount

public int getActionCount()
Specified by:
getActionCount in interface EventHandlerConfig

getJavaClass

public String getJavaClass()
Specified by:
getJavaClass in interface EventHandlerConfig

setJavaClass

public void setJavaClass(String className)
Specified by:
setJavaClass in interface EventHandlerConfig

getSandboxConfig

public SandboxConfig getSandboxConfig()
Returns the Sandbox object

Specified by:
getSandboxConfig in interface EventHandlerConfig

getLogConfig

public LogConfig getLogConfig()
Returns the LogConfig object

Specified by:
getLogConfig in interface EventHandlerConfig

getAttributeMap

public AttributeMapConfig getAttributeMap(boolean input)
Gets the attributeMap attribute of the ConnectorConfig object

Specified by:
getAttributeMap in interface EventHandlerConfig
Parameters:
input - True, if Input AttributeMap should be returned. False, if Output AttributeMap should be returned
Returns:
The AttributeMap value

getClone

public Object getClone()
                throws Exception
Returns a self clone

Specified by:
getClone in interface BaseConfiguration
Overrides:
getClone in class BaseConfigurationImpl
Throws:
Exception