Package com.ibm.di.config.base
Class SimulationConfigImpl
- java.lang.Object
-
- com.ibm.di.config.base.BaseConfigurationImpl
-
- com.ibm.di.config.base.SimulationConfigImpl
-
- All Implemented Interfaces:
BaseConfiguration,MetamergeConfigChangeListener,SimulationConfig,java.io.Serializable
public class SimulationConfigImpl extends BaseConfigurationImpl implements SimulationConfig
This class is used to configure the AssemblyLine's simulation mode.- 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
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
-
Fields inherited from interface com.ibm.di.config.interfaces.SimulationConfig
AL_SIMULATE_PROXY_CONFIG, AL_SIMULATE_PROXY_DEBUG, AL_SIMULATE_PROXY_MODE, AL_SIMULATE_PROXY_NAME, AL_SIMULATE_PROXY_SERVER, METHODS_CON_ADDONLY, METHODS_CON_CALL_REPLY, METHODS_CON_DELETE, METHODS_CON_DELTA, METHODS_CON_ITERATOR, METHODS_CON_LOOKUP, METHODS_CON_REPLY, METHODS_CON_SERVER, METHODS_CON_UPDATE, METHODS_FC_PERFORM, SIM_DISABLED_STATE, SIM_ENABLED_STATE, SIM_OP_AS_STRING, SIM_OP_DELETE_ENTRY, SIM_OP_FIND_ENTRY, SIM_OP_GET_NEXT_CLIENT, SIM_OP_GET_NEXT_ENTRY, SIM_OP_MOD_ENTRY, SIM_OP_PERFORM, SIM_OP_PUT_ENTRY, SIM_OP_QUERY_REPLY, SIM_OP_REPLY_ENTRY, SIM_OP_SELECT_ENTRIES, SIM_PROXY_STATE, SIM_SCRIPTED_STATE, SIM_SIMULATED_STATE, SIMULATE_HOOK_NAME
-
-
Constructor Summary
Constructors Constructor Description SimulationConfigImpl()SimulationConfigImpl(java.lang.Object config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssemblyLineConfigcreateOrUpdateProxyAL()This method checks the current simulation config settings and uses the ProxyAL setting to lookup the ProxyAL's AssibmlyLineConfig object.java.lang.StringgetComponentSimState(java.lang.String name)Returns the state of the specified by the name parameter ComponentHookConfiggetHook(java.lang.String name)Return the simulation hook config object for the specified bynamecomponentjava.lang.StringgetProxyALConfigInstance()Returns the configInstance IDbooleangetProxyALDebug()Gets the debug flag stateintgetProxyALMode()Gets the mode the proxy AL will run in 0 - Run and wait for result 1 - Run in background 2 - Run in Manual modejava.lang.StringgetProxyALName()Returns the name of the AL set as a proxy.java.lang.StringgetProxyALServer()Returns the name of the remote server.BaseConfigurationgetProxySettings()Gets the proxySettings Config holdervoidinit()Called after internal data structure is set.voidsetComponentSimState(java.lang.String name, java.lang.String state)Set the state of the Component specified by the name parametervoidsetProxyALConfigInstance(java.lang.String config)Sets the ID of the configInstance to usevoidsetProxyALDebug(boolean debug)Sets proxy AL debug flag on/offvoidsetProxyALMode(int mode)Sets the mode the proxy AL will run in 0 - Run and wait for result 1 - Run in background 2 - Run in Manual modevoidsetProxyALName(java.lang.String name)Sets the name of the AL to use as proxy.voidsetProxyALServer(java.lang.String server)Sets the remote server host name.-
Methods inherited from class com.ibm.di.config.base.BaseConfigurationImpl
addListener, configurationChanged, deepClone, detachFromParent, expandPropertyValue, expandPropertyValue, flatten, fromEntry, getBooleanParameter, getChild, getChildForPath, getChildNames, getClone, 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, 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, getClone, 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, 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
-
-
-
-
Method Detail
-
init
public void init() throws java.lang.ExceptionDescription copied from class:BaseConfigurationImplCalled after internal data structure is set.- Specified by:
initin interfaceBaseConfiguration- Overrides:
initin classBaseConfigurationImpl- Throws:
java.lang.Exception- if the initialization fails.
-
getComponentSimState
public java.lang.String getComponentSimState(java.lang.String name)
Description copied from interface:SimulationConfigReturns the state of the specified by the name parameter Component- Specified by:
getComponentSimStatein interfaceSimulationConfig- Parameters:
name- The name of the component- Returns:
- the simulation state of the component as String or null if undefined
-
getHook
public HookConfig getHook(java.lang.String name)
Description copied from interface:SimulationConfigReturn the simulation hook config object for the specified bynamecomponent- Specified by:
getHookin interfaceSimulationConfig- Parameters:
name- The name of the component which hook configuration to get- Returns:
- The simulation hook specified by the name parameter or null if the component is not found. If it is found but the requested HookConfig does not exist then it is created and returned.
-
getProxyALName
public java.lang.String getProxyALName()
Description copied from interface:SimulationConfigReturns the name of the AL set as a proxy.- Specified by:
getProxyALNamein interfaceSimulationConfig- Returns:
- The name of the AL used as proxy or null if nothing was set.
-
setComponentSimState
public void setComponentSimState(java.lang.String name, java.lang.String state)Description copied from interface:SimulationConfigSet the state of the Component specified by the name parameter- Specified by:
setComponentSimStatein interfaceSimulationConfig- Parameters:
name- The name of the Componentstate- The new state of the Component
-
setProxyALName
public void setProxyALName(java.lang.String name)
Description copied from interface:SimulationConfigSets the name of the AL to use as proxy.- Specified by:
setProxyALNamein interfaceSimulationConfig- Parameters:
name- The name of the AL
-
getProxyALConfigInstance
public java.lang.String getProxyALConfigInstance()
Description copied from interface:SimulationConfigReturns the configInstance ID- Specified by:
getProxyALConfigInstancein interfaceSimulationConfig- Returns:
- The ID of the configInstance
-
getProxyALServer
public java.lang.String getProxyALServer()
Description copied from interface:SimulationConfigReturns the name of the remote server.- Specified by:
getProxyALServerin interfaceSimulationConfig- Returns:
- The name of the server
-
setProxyALConfigInstance
public void setProxyALConfigInstance(java.lang.String config)
Description copied from interface:SimulationConfigSets the ID of the configInstance to use- Specified by:
setProxyALConfigInstancein interfaceSimulationConfig- Parameters:
config- The ID of the ConfigInstance
-
setProxyALServer
public void setProxyALServer(java.lang.String server)
Description copied from interface:SimulationConfigSets the remote server host name.- Specified by:
setProxyALServerin interfaceSimulationConfig- Parameters:
server- The name of the server
-
getProxyALMode
public int getProxyALMode()
Description copied from interface:SimulationConfigGets the mode the proxy AL will run in- 0 - Run and wait for result
- 1 - Run in background
- 2 - Run in Manual mode
- Specified by:
getProxyALModein interfaceSimulationConfig- Returns:
- The mode the AL will run in
-
setProxyALMode
public void setProxyALMode(int mode)
Description copied from interface:SimulationConfigSets the mode the proxy AL will run in- 0 - Run and wait for result
- 1 - Run in background
- 2 - Run in Manual mode
- Specified by:
setProxyALModein interfaceSimulationConfig- Parameters:
mode- The mode the AL will run in
-
getProxyALDebug
public boolean getProxyALDebug()
Description copied from interface:SimulationConfigGets the debug flag state- Specified by:
getProxyALDebugin interfaceSimulationConfig- Returns:
- The value of the proxy AL debug flag
-
setProxyALDebug
public void setProxyALDebug(boolean debug)
Description copied from interface:SimulationConfigSets proxy AL debug flag on/off- Specified by:
setProxyALDebugin interfaceSimulationConfig- Parameters:
debug- The new value of the debug flag
-
getProxySettings
public BaseConfiguration getProxySettings() throws java.lang.Exception
Description copied from interface:SimulationConfigGets the proxySettings Config holder- Specified by:
getProxySettingsin interfaceSimulationConfig- Returns:
- The proxySettings
- Throws:
java.lang.Exception
-
createOrUpdateProxyAL
public AssemblyLineConfig createOrUpdateProxyAL() throws java.lang.Exception
Description copied from interface:SimulationConfigThis method checks the current simulation config settings and uses the ProxyAL setting to lookup the ProxyAL's AssibmlyLineConfig object. If that object is found it is updated with the missingBranchingConfigcomponents. Any of the existing component in the AssemblyLineConfig that are user defined are not changed. If that object could not be found during the lookup process it is created.- Specified by:
createOrUpdateProxyALin interfaceSimulationConfig- Returns:
- the object that was updated with the necessary branching components
- Throws:
java.lang.Exception
-
-