public interface ScriptDriver
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowImplicitParams() |
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) |
java.util.Map |
getSupportedEngines() |
boolean |
isBinaryScript() |
boolean |
isVarNameMatchesKeyWord(java.lang.String varName) |
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.
|
void |
runScript(java.lang.String name,
java.util.Map context)
Executes the script identified by
name |
boolean |
supportsPublishedParams() |
void runScript(java.lang.String name,
java.util.Map context)
throws MXException,
java.rmi.RemoteException
namename - - the name of the script to executecontext - - the execution context for the script runtimeMXExceptionjava.rmi.RemoteExceptionboolean canRun(java.lang.String scriptLang)
scriptLangscriptLang - the script languagevoid releaseResources()
void releaseResources(java.lang.String scriptName)
boolean preCompileScript(ScriptInfo scriptInfo) throws MXException
scriptInfo - - the ScriptInfo object for the scriptMXExceptionjava.rmi.RemoteExceptionvoid compileScript(java.lang.String scriptName,
java.lang.String scriptSource,
java.lang.String scriptLanguage)
throws MXException
MXExceptionjava.util.Map getSupportedEngines()
boolean isBinaryScript()
java.util.List parseScriptForParams(byte[] scriptBytes)
throws MXException
MXExceptionboolean isVarNameMatchesKeyWord(java.lang.String varName)
boolean supportsPublishedParams()
boolean allowImplicitParams()