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, waitcanRun, compileScript, getSupportedEngines, isBinaryScript, parseScriptForParams, preCompileScript, releaseResources, releaseResourcespublic boolean isVarNameMatchesKeyWord(java.lang.String varName)
isVarNameMatchesKeyWord in interface ScriptDriverpublic final void runScript(java.lang.String name,
java.util.Map context)
throws MXException,
java.rmi.RemoteException
ScriptDrivernamerunScript in interface ScriptDrivername - - the name of the script to executecontext - - the execution context for the script runtimeMXExceptionjava.rmi.RemoteExceptionpublic 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 - MXExceptionjava.rmi.RemoteExceptionprotected void evalINParams(ScriptInfo scriptInfo, java.util.Map context, java.util.Map calculatedParamValues) throws MXException, java.rmi.RemoteException
scriptInfo - context - MXExceptionjava.rmi.RemoteExceptionprotected 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 mapMXExceptionjava.rmi.RemoteExceptionprotected void checkForScriptError(java.util.Map context)
throws MXException
context - the variable context passed to the script engine.MXExceptionprotected 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 flagMXExceptionjava.rmi.RemoteExceptionprotected 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 ScriptDriverpublic boolean allowImplicitParams()
allowImplicitParams in interface ScriptDriver