public class MBRScriptDriver extends AbstractScriptDriver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCRIPT_LOGGER |
static MXLogger |
SCRIPTLOGGER |
Constructor and Description |
---|
MBRScriptDriver() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRun(java.lang.String scriptLang)
Verify if the driver can support script language
scriptLang |
void |
compileScript(java.lang.String scriptName,
java.lang.String scriptSource,
java.lang.String scriptLanguage) |
protected void |
evalScript(ScriptInfo scriptInfo,
java.util.Map context) |
static java.util.Map |
getAllSupportedScriptEngines()
Get all supported Script Engines short (or) alias names
|
java.util.Map |
getSupportedEngines() |
boolean |
isBinaryScript() |
java.util.List |
parseScriptForParams(byte[] scriptBytes) |
boolean |
preCompileScript(ScriptInfo scriptInfo)
Precompiles the script
|
void |
releaseResources()
Call back method to release driver resources before the driver gets gced.
|
void |
releaseResources(java.lang.String scriptName)
Call back method to release driver resources before the driver gets gced.
|
static void |
wrapMXException(MXException me,
java.lang.String scrName,
int lineNum) |
allowImplicitParams, checkForScriptError, evalINParams, evalOUTParams, getLogger, hasValueChanged, isChildAttribute, isNull, isParamErrorGroup, isParamErrorKey, isVarNameMatchesKeyWord, printMap, runScript, setValue, supportsPublishedParams
public static final java.lang.String SCRIPT_LOGGER
public static final MXLogger SCRIPTLOGGER
public static java.util.Map getAllSupportedScriptEngines()
public void compileScript(java.lang.String scriptName, java.lang.String scriptSource, java.lang.String scriptLanguage) throws MXException
MXException
public boolean preCompileScript(ScriptInfo scriptInfo) throws MXException
ScriptDriver
scriptInfo
- - the ScriptInfo object for the scriptMXException
protected void evalScript(ScriptInfo scriptInfo, java.util.Map context) throws MXException, java.rmi.RemoteException
evalScript
in class AbstractScriptDriver
MXException
java.rmi.RemoteException
public static void wrapMXException(MXException me, java.lang.String scrName, int lineNum)
public boolean canRun(java.lang.String scriptLang)
ScriptDriver
scriptLang
scriptLang
- the script languagepublic void releaseResources()
ScriptDriver
public void releaseResources(java.lang.String scriptName)
ScriptDriver
public java.util.Map getSupportedEngines()
public boolean isBinaryScript()
public java.util.List parseScriptForParams(byte[] scriptBytes) throws MXException
MXException