Package com.ibm.di.config.interfaces
Interface SimulationConfig
-
- All Superinterfaces:
BaseConfiguration
,java.io.Serializable
- All Known Implementing Classes:
SimulationConfigImpl
public interface SimulationConfig extends BaseConfiguration
This class is used to configure the AssemblyLine's simulation mode.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AL_SIMULATE_PROXY_CONFIG
static java.lang.String
AL_SIMULATE_PROXY_DEBUG
static java.lang.String
AL_SIMULATE_PROXY_MODE
static java.lang.String
AL_SIMULATE_PROXY_NAME
static java.lang.String
AL_SIMULATE_PROXY_SERVER
static java.lang.String[]
METHODS_CON_ADDONLY
static java.lang.String[]
METHODS_CON_CALL_REPLY
static java.lang.String[]
METHODS_CON_DELETE
static java.lang.String[]
METHODS_CON_DELTA
static java.lang.String[]
METHODS_CON_ITERATOR
static java.lang.String[]
METHODS_CON_LOOKUP
static java.lang.String[]
METHODS_CON_REPLY
static java.lang.String[]
METHODS_CON_SERVER
static java.lang.String[]
METHODS_CON_UPDATE
static java.lang.String[]
METHODS_FC_PERFORM
static java.lang.String
SIM_DISABLED_STATE
static java.lang.String
SIM_ENABLED_STATE
static java.lang.String[]
SIM_OP_AS_STRING
static int
SIM_OP_DELETE_ENTRY
static int
SIM_OP_FIND_ENTRY
static int
SIM_OP_GET_NEXT_CLIENT
static int
SIM_OP_GET_NEXT_ENTRY
static int
SIM_OP_MOD_ENTRY
static int
SIM_OP_PERFORM
static int
SIM_OP_PUT_ENTRY
static int
SIM_OP_QUERY_REPLY
static int
SIM_OP_REPLY_ENTRY
static int
SIM_OP_SELECT_ENTRIES
static java.lang.String
SIM_PROXY_STATE
static java.lang.String
SIM_SCRIPTED_STATE
static java.lang.String
SIM_SIMULATED_STATE
static java.lang.String
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 ComponentHookConfig
getHook(java.lang.String name)
Return the simulation hook config object for the specified byname
componentjava.lang.String
getProxyALConfigInstance()
Returns the configInstance IDboolean
getProxyALDebug()
Gets the debug flag stateint
getProxyALMode()
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.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 holdervoid
setComponentSimState(java.lang.String name, java.lang.String state)
Set the state of the Component specified by the name parametervoid
setProxyALConfigInstance(java.lang.String config)
Sets the ID of the configInstance to usevoid
setProxyALDebug(boolean debug)
Sets proxy AL debug flag on/offvoid
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 modevoid
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 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, 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
-
SIM_ENABLED_STATE
static final java.lang.String SIM_ENABLED_STATE
- See Also:
- Constant Field Values
-
SIM_DISABLED_STATE
static final java.lang.String SIM_DISABLED_STATE
- See Also:
- Constant Field Values
-
SIM_SIMULATED_STATE
static final java.lang.String SIM_SIMULATED_STATE
- See Also:
- Constant Field Values
-
SIM_PROXY_STATE
static final java.lang.String SIM_PROXY_STATE
- See Also:
- Constant Field Values
-
SIM_SCRIPTED_STATE
static final java.lang.String SIM_SCRIPTED_STATE
- See Also:
- Constant Field Values
-
AL_SIMULATE_PROXY_NAME
static final java.lang.String AL_SIMULATE_PROXY_NAME
- See Also:
- Constant Field Values
-
AL_SIMULATE_PROXY_SERVER
static final java.lang.String AL_SIMULATE_PROXY_SERVER
- See Also:
- Constant Field Values
-
AL_SIMULATE_PROXY_CONFIG
static final java.lang.String AL_SIMULATE_PROXY_CONFIG
- See Also:
- Constant Field Values
-
AL_SIMULATE_PROXY_MODE
static final java.lang.String AL_SIMULATE_PROXY_MODE
- See Also:
- Constant Field Values
-
AL_SIMULATE_PROXY_DEBUG
static final java.lang.String AL_SIMULATE_PROXY_DEBUG
- See Also:
- Constant Field Values
-
SIM_OP_GET_NEXT_CLIENT
static final int SIM_OP_GET_NEXT_CLIENT
- See Also:
- Constant Field Values
-
SIM_OP_GET_NEXT_ENTRY
static final int SIM_OP_GET_NEXT_ENTRY
- See Also:
- Constant Field Values
-
SIM_OP_FIND_ENTRY
static final int SIM_OP_FIND_ENTRY
- See Also:
- Constant Field Values
-
SIM_OP_SELECT_ENTRIES
static final int SIM_OP_SELECT_ENTRIES
- See Also:
- Constant Field Values
-
SIM_OP_REPLY_ENTRY
static final int SIM_OP_REPLY_ENTRY
- See Also:
- Constant Field Values
-
SIM_OP_QUERY_REPLY
static final int SIM_OP_QUERY_REPLY
- See Also:
- Constant Field Values
-
SIM_OP_PERFORM
static final int SIM_OP_PERFORM
- See Also:
- Constant Field Values
-
SIM_OP_PUT_ENTRY
static final int SIM_OP_PUT_ENTRY
- See Also:
- Constant Field Values
-
SIM_OP_MOD_ENTRY
static final int SIM_OP_MOD_ENTRY
- See Also:
- Constant Field Values
-
SIM_OP_DELETE_ENTRY
static final int SIM_OP_DELETE_ENTRY
- See Also:
- Constant Field Values
-
SIM_OP_AS_STRING
static final java.lang.String[] SIM_OP_AS_STRING
-
METHODS_FC_PERFORM
static final java.lang.String[] METHODS_FC_PERFORM
-
METHODS_CON_UPDATE
static final java.lang.String[] METHODS_CON_UPDATE
-
METHODS_CON_DELETE
static final java.lang.String[] METHODS_CON_DELETE
-
METHODS_CON_DELTA
static final java.lang.String[] METHODS_CON_DELTA
-
METHODS_CON_ITERATOR
static final java.lang.String[] METHODS_CON_ITERATOR
-
METHODS_CON_REPLY
static final java.lang.String[] METHODS_CON_REPLY
-
METHODS_CON_CALL_REPLY
static final java.lang.String[] METHODS_CON_CALL_REPLY
-
METHODS_CON_SERVER
static final java.lang.String[] METHODS_CON_SERVER
-
METHODS_CON_LOOKUP
static final java.lang.String[] METHODS_CON_LOOKUP
-
METHODS_CON_ADDONLY
static final java.lang.String[] METHODS_CON_ADDONLY
-
SIMULATE_HOOK_NAME
static final java.lang.String SIMULATE_HOOK_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setProxyALName
void setProxyALName(java.lang.String name)
Sets the name of the AL to use as proxy.- Parameters:
name
- The name of the AL
-
getProxyALName
java.lang.String getProxyALName()
Returns the name of the AL set as a proxy.- Returns:
- The name of the AL used as proxy or null if nothing was set.
-
setProxyALServer
void setProxyALServer(java.lang.String server)
Sets the remote server host name.- Parameters:
server
- The name of the server
-
getProxyALServer
java.lang.String getProxyALServer()
Returns the name of the remote server.- Returns:
- The name of the server
-
setProxyALConfigInstance
void setProxyALConfigInstance(java.lang.String config)
Sets the ID of the configInstance to use- Parameters:
config
- The ID of the ConfigInstance
-
getProxyALConfigInstance
java.lang.String getProxyALConfigInstance()
Returns the configInstance ID- Returns:
- The ID of the configInstance
-
setProxyALMode
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
- Parameters:
mode
- The mode the AL will run in
-
getProxyALMode
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
- Returns:
- The mode the AL will run in
-
setProxyALDebug
void setProxyALDebug(boolean debug)
Sets proxy AL debug flag on/off- Parameters:
debug
- The new value of the debug flag
-
getProxyALDebug
boolean getProxyALDebug()
Gets the debug flag state- Returns:
- The value of the proxy AL debug flag
-
getProxySettings
BaseConfiguration getProxySettings() throws java.lang.Exception
Gets the proxySettings Config holder- Returns:
- The proxySettings
- Throws:
java.lang.Exception
-
createOrUpdateProxyAL
AssemblyLineConfig createOrUpdateProxyAL() throws java.lang.Exception
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 missingBranchingConfig
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.- Returns:
- the object that was updated with the necessary branching components
- Throws:
java.lang.Exception
-
getHook
HookConfig getHook(java.lang.String name)
Return the simulation hook config object for the specified byname
component- 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.
-
getComponentSimState
java.lang.String getComponentSimState(java.lang.String name)
Returns the state of the specified by the name parameter Component- Parameters:
name
- The name of the component- Returns:
- the simulation state of the component as String or null if undefined
-
setComponentSimState
void setComponentSimState(java.lang.String name, java.lang.String state)
Set the state of the Component specified by the name parameter- Parameters:
name
- The name of the Componentstate
- The new state of the Component
-
-