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.StringAL_SIMULATE_PROXY_CONFIGstatic java.lang.StringAL_SIMULATE_PROXY_DEBUGstatic java.lang.StringAL_SIMULATE_PROXY_MODEstatic java.lang.StringAL_SIMULATE_PROXY_NAMEstatic java.lang.StringAL_SIMULATE_PROXY_SERVERstatic java.lang.String[]METHODS_CON_ADDONLYstatic java.lang.String[]METHODS_CON_CALL_REPLYstatic java.lang.String[]METHODS_CON_DELETEstatic java.lang.String[]METHODS_CON_DELTAstatic java.lang.String[]METHODS_CON_ITERATORstatic java.lang.String[]METHODS_CON_LOOKUPstatic java.lang.String[]METHODS_CON_REPLYstatic java.lang.String[]METHODS_CON_SERVERstatic java.lang.String[]METHODS_CON_UPDATEstatic java.lang.String[]METHODS_FC_PERFORMstatic java.lang.StringSIM_DISABLED_STATEstatic java.lang.StringSIM_ENABLED_STATEstatic java.lang.String[]SIM_OP_AS_STRINGstatic intSIM_OP_DELETE_ENTRYstatic intSIM_OP_FIND_ENTRYstatic intSIM_OP_GET_NEXT_CLIENTstatic intSIM_OP_GET_NEXT_ENTRYstatic intSIM_OP_MOD_ENTRYstatic intSIM_OP_PERFORMstatic intSIM_OP_PUT_ENTRYstatic intSIM_OP_QUERY_REPLYstatic intSIM_OP_REPLY_ENTRYstatic intSIM_OP_SELECT_ENTRIESstatic java.lang.StringSIM_PROXY_STATEstatic java.lang.StringSIM_SCRIPTED_STATEstatic java.lang.StringSIM_SIMULATED_STATEstatic java.lang.StringSIMULATE_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 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 holdervoidsetComponentSimState(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 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 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.- 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 bynamecomponent- 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
-
-