public class JSR223ScriptDriver extends AbstractScriptDriver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SCRIPT_LOGGER |
static MXLogger |
SCRIPTLOGGER |
Constructor and Description |
---|
JSR223ScriptDriver() |
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() |
static ScriptEngineInfo |
getSupportedScriptEngineInfo(java.lang.String engShortName)
Get all supported Script Engines short (or) alias names
|
static java.util.Set<java.lang.String> |
getSupportedScriptEngineNames()
Get all supported Script Engines short (or) alias names
|
boolean |
isBinaryScript() |
java.util.List<ScriptParamInfo> |
parseScriptForParams(byte[] scriptBytes) |
boolean |
preCompileScript(ScriptInfo scriptInfo)
Precompiles the script
|
static byte[] |
readBinaryData(java.io.InputStream input) |
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.
|
allowImplicitParams, isParamErrorGroup, isParamErrorKey, isVarNameMatchesKeyWord, runScript, supportsPublishedParams
public static final java.lang.String SCRIPT_LOGGER
public static final MXLogger SCRIPTLOGGER
public static byte[] readBinaryData(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static java.util.Set<java.lang.String> getSupportedScriptEngineNames()
public static java.util.Map<java.lang.String,ScriptEngineInfo> getAllSupportedScriptEngines()
public static ScriptEngineInfo getSupportedScriptEngineInfo(java.lang.String engShortName)
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 boolean preCompileScript(ScriptInfo scriptInfo) throws MXException
ScriptDriver
scriptInfo
- - the ScriptInfo object for the scriptMXException
public java.util.Map<java.lang.String,ScriptEngineInfo> getSupportedEngines()
public boolean isBinaryScript()
public java.util.List<ScriptParamInfo> parseScriptForParams(byte[] scriptBytes) throws MXException
MXException
public void compileScript(java.lang.String scriptName, java.lang.String scriptSource, java.lang.String scriptLanguage) throws MXException
MXException