public abstract class AbstractScriptDriver extends java.lang.Object implements ScriptDriver
Constructor and Description |
---|
AbstractScriptDriver() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowImplicitParams() |
protected void |
checkForScriptError(java.util.Map context)
Verifies if the script has set the error flag - indicating an MXException has to be generated.
|
protected void |
evalINParams(ScriptInfo scriptInfo,
java.util.Map context,
java.util.Map calculatedParamValues) |
protected void |
evalOUTParams(ScriptInfo scriptInfo,
java.util.Map context,
java.util.Map clonedContext,
java.util.Map calculatedParamValues)
Evaluate OUT/INOUT parameters.
|
protected abstract void |
evalScript(ScriptInfo scriptInfo,
java.util.Map context) |
protected MXLogger |
getLogger(java.lang.String name) |
protected boolean |
hasValueChanged(java.lang.String contextVar,
java.util.Map context,
java.util.Map clonedContext)
Verifies if the parameter value has been modified by the script.
|
protected boolean |
isChildAttribute(java.lang.String attrBindingValue) |
protected boolean |
isNull(java.lang.String s) |
boolean |
isParamErrorGroup(java.lang.String contextParam) |
boolean |
isParamErrorKey(java.lang.String contextParam) |
boolean |
isVarNameMatchesKeyWord(java.lang.String varName) |
protected void |
printMap(java.util.Set entries,
java.lang.String text) |
void |
runScript(java.lang.String name,
java.util.Map context)
Executes the script identified by
name |
protected void |
setValue(MboRemote mbo,
java.lang.String attributeName,
java.lang.Object value,
long flag)
Set value to mbo attribute.
|
boolean |
supportsPublishedParams() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRun, compileScript, getSupportedEngines, isBinaryScript, parseScriptForParams, preCompileScript, releaseResources, releaseResources
public boolean isVarNameMatchesKeyWord(java.lang.String varName)
isVarNameMatchesKeyWord
in interface ScriptDriver
public final void runScript(java.lang.String name, java.util.Map context) throws MXException, java.rmi.RemoteException
ScriptDriver
name
runScript
in interface ScriptDriver
name
- - the name of the script to executecontext
- - the execution context for the script runtimeMXException
java.rmi.RemoteException
public boolean isParamErrorKey(java.lang.String contextParam)
contextParam
- public boolean isParamErrorGroup(java.lang.String contextParam)
contextParam
- protected abstract void evalScript(ScriptInfo scriptInfo, java.util.Map context) throws MXException, java.rmi.RemoteException
scriptInfo
- context
- MXException
java.rmi.RemoteException
protected void evalINParams(ScriptInfo scriptInfo, java.util.Map context, java.util.Map calculatedParamValues) throws MXException, java.rmi.RemoteException
scriptInfo
- context
- MXException
java.rmi.RemoteException
protected boolean isChildAttribute(java.lang.String attrBindingValue)
protected boolean isNull(java.lang.String s)
s
- protected void printMap(java.util.Set entries, java.lang.String text)
protected void evalOUTParams(ScriptInfo scriptInfo, java.util.Map context, java.util.Map clonedContext, java.util.Map calculatedParamValues) throws MXException, java.rmi.RemoteException
scriptInfo
- the ScriptInfo objectcontext
- the context map passed to the scriptclonedContext
- the cloned version of the context mapMXException
java.rmi.RemoteException
protected void checkForScriptError(java.util.Map context) throws MXException
context
- the variable context passed to the script engine.MXException
protected void setValue(MboRemote mbo, java.lang.String attributeName, java.lang.Object value, long flag) throws MXException, java.rmi.RemoteException
mbo
- the mboattributeName
- the attributevalue
- the value to setflag
- the field flagMXException
java.rmi.RemoteException
protected MXLogger getLogger(java.lang.String name)
protected boolean hasValueChanged(java.lang.String contextVar, java.util.Map context, java.util.Map clonedContext)
contextVar
- the context param namecontext
- the context that is passed to the s script execution engineclonedContext
- the cloned version of the contextpublic boolean supportsPublishedParams()
supportsPublishedParams
in interface ScriptDriver
public boolean allowImplicitParams()
allowImplicitParams
in interface ScriptDriver