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
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
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
Method Summary
AssemblyLineConfig
createOrUpdateProxyAL ()
This method checks the current simulation config settings and uses the
ProxyAL setting to lookup the ProxyAL's AssibmlyLineConfig object.
java.lang.String
getComponentSimState (java.lang.String name)
Returns the state of the specified by the name parameter Component
HookConfig
getHook (java.lang.String name)
Return the simulation hook config object for the specified by
name
component
java.lang.String
getProxyALConfigInstance ()
Returns the configInstance ID
boolean
getProxyALDebug ()
Gets the debug flag state
int
getProxyALMode ()
Gets the mode the proxy AL will run in
0 - Run and wait for result
1 - Run in background
2 - Run in Manual mode
java.lang.String
getProxyALName ()
Returns the name of the AL set as a proxy.
java.lang.String
getProxyALServer ()
Returns the name of the remote server.
BaseConfiguration
getProxySettings ()
Gets the proxySettings Config holder
void
init ()
Called after internal data structure is set.
void
setComponentSimState (java.lang.String name,
java.lang.String state)
Set the state of the Component specified by the name parameter
void
setProxyALConfigInstance (java.lang.String config)
Sets the ID of the configInstance to use
void
setProxyALDebug (boolean debug)
Sets proxy AL debug flag on/off
void
setProxyALMode (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 mode
void
setProxyALName (java.lang.String name)
Sets the name of the AL to use as proxy.
void
setProxyALServer (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 , 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 , setInheritsFrom , 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 , getClone , 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 , setInheritsFrom , 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
SimulationConfigImpl
public SimulationConfigImpl ()
SimulationConfigImpl
public SimulationConfigImpl (java.lang.Object config)
init
public void init ()
throws java.lang.Exception
Description copied from class: BaseConfigurationImpl
Called after internal data structure is set.
Specified by: init
in interface BaseConfiguration
Overrides: init
in class BaseConfigurationImpl
Throws:
java.lang.Exception
- if the initialization fails.
getComponentSimState
public java.lang.String getComponentSimState (java.lang.String name)
Description copied from interface: SimulationConfig
Returns the state of the specified by the name parameter Component
Specified by: getComponentSimState
in interface SimulationConfig
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: SimulationConfig
Return the simulation hook config object for the specified by
name
component
Specified by: getHook
in interface SimulationConfig
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: SimulationConfig
Returns the name of the AL set as a proxy.
Specified by: getProxyALName
in interface SimulationConfig
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: SimulationConfig
Set the state of the Component specified by the name parameter
Specified by: setComponentSimState
in interface SimulationConfig
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: SimulationConfig
Sets the name of the AL to use as proxy.
Specified by: setProxyALName
in interface SimulationConfig
Parameters: name
- The name of the AL
getProxyALConfigInstance
public java.lang.String getProxyALConfigInstance ()
Description copied from interface: SimulationConfig
Returns the configInstance ID
Specified by: getProxyALConfigInstance
in interface SimulationConfig
Returns: The ID of the configInstance
getProxyALServer
public java.lang.String getProxyALServer ()
Description copied from interface: SimulationConfig
Returns the name of the remote server.
Specified by: getProxyALServer
in interface SimulationConfig
Returns: The name of the server
setProxyALConfigInstance
public void setProxyALConfigInstance (java.lang.String config)
Description copied from interface: SimulationConfig
Sets the ID of the configInstance to use
Specified by: setProxyALConfigInstance
in interface SimulationConfig
Parameters: config
- The ID of the ConfigInstance
setProxyALServer
public void setProxyALServer (java.lang.String server)
Description copied from interface: SimulationConfig
Sets the remote server host name.
Specified by: setProxyALServer
in interface SimulationConfig
Parameters: server
- The name of the server
getProxyALMode
public int getProxyALMode ()
Description copied from interface: SimulationConfig
Gets 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: getProxyALMode
in interface SimulationConfig
Returns: The mode the AL will run in
setProxyALMode
public void setProxyALMode (int mode)
Description copied from interface: SimulationConfig
Sets 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: setProxyALMode
in interface SimulationConfig
Parameters: mode
- The mode the AL will run in
getProxyALDebug
public boolean getProxyALDebug ()
Description copied from interface: SimulationConfig
Gets the debug flag state
Specified by: getProxyALDebug
in interface SimulationConfig
Returns: The value of the proxy AL debug flag
setProxyALDebug
public void setProxyALDebug (boolean debug)
Description copied from interface: SimulationConfig
Sets proxy AL debug flag on/off
Specified by: setProxyALDebug
in interface SimulationConfig
Parameters: debug
- The new value of the debug flag
getProxySettings
public BaseConfiguration getProxySettings ()
throws java.lang.Exception
Description copied from interface: SimulationConfig
Gets the proxySettings Config holder
Specified by: getProxySettings
in interface SimulationConfig
Returns: The proxySettings
Throws:
java.lang.Exception
createOrUpdateProxyAL
public AssemblyLineConfig createOrUpdateProxyAL ()
throws java.lang.Exception
Description copied from interface: SimulationConfig
This 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 missing
BranchingConfig
components. 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: createOrUpdateProxyAL
in interface SimulationConfig
Returns: the object that was updated with the necessary branching
components
Throws:
java.lang.Exception