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<java.lang.String,ScriptEngineInfo> |
getSupportedEngines() |
boolean |
isBinaryScript() |
boolean |
isVarNameMatchesKeyWord(java.lang.String varName) |
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.
|
void |
runScript(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> context)
Executes the script identified by
name |
boolean |
supportsPublishedParams() |
void runScript(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> context) throws MXException, java.rmi.RemoteException
name
name
- - the name of the script to executecontext
- - the execution context for the script runtimeMXException
java.rmi.RemoteException
boolean canRun(java.lang.String scriptLang)
scriptLang
scriptLang
- the script languagevoid releaseResources()
void releaseResources(java.lang.String scriptName)
boolean preCompileScript(ScriptInfo scriptInfo) throws MXException
scriptInfo
- - the ScriptInfo object for the scriptMXException
java.rmi.RemoteException
void compileScript(java.lang.String scriptName, java.lang.String scriptSource, java.lang.String scriptLanguage) throws MXException
MXException
java.util.Map<java.lang.String,ScriptEngineInfo> getSupportedEngines()
boolean isBinaryScript()
java.util.List<ScriptParamInfo> parseScriptForParams(byte[] scriptBytes) throws MXException
MXException
boolean isVarNameMatchesKeyWord(java.lang.String varName)
boolean supportsPublishedParams()
boolean allowImplicitParams()