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) |
static java.util.Map<java.lang.String,ScriptEngineInfo> |
getAllSupportedScriptEngines()
Get all supported Script Engines short (or) alias names
|
java.util.Map<java.lang.String,ScriptEngineInfo> |
getSupportedEngines() |
boolean |
isBinaryScript() |
java.util.List<ScriptParamInfo> |
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, isParamErrorGroup, isParamErrorKey, isVarNameMatchesKeyWord, runScript, supportsPublishedParams
public static final java.lang.String SCRIPT_LOGGER
public static final MXLogger SCRIPTLOGGER
public static java.util.Map<java.lang.String,ScriptEngineInfo> 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
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<java.lang.String,ScriptEngineInfo> getSupportedEngines()
public boolean isBinaryScript()
public java.util.List<ScriptParamInfo> parseScriptForParams(byte[] scriptBytes) throws MXException
MXException