public static class AbstractExecutorManager.JSExecutor extends Executor
Constructor and Description |
---|
JSExecutor(String executorName,
ScriptEngine engine,
File file) |
JSExecutor(String executorName,
ScriptEngine engine,
InputStream file) |
Modifier and Type | Method and Description |
---|---|
Integer |
execute(Timings.Timing timing,
boolean sync,
Map<String,Object> variables,
Object e,
Object... args) |
ValidationResult |
validate(Object... args) |
runSyncTaskForFuture, runTaskLater, runTaskLater
public JSExecutor(String executorName, ScriptEngine engine, File file) throws ScriptException, IOException
ScriptException
IOException
public JSExecutor(String executorName, ScriptEngine engine, InputStream file) throws ScriptException, IOException
ScriptException
IOException
public ValidationResult validate(Object... args)
public Integer execute(Timings.Timing timing, boolean sync, Map<String,Object> variables, Object e, Object... args) throws Exception
execute
in class Executor
timing
- the parent timing instance. Extend timing using this instance, not creating new one. Can be null.variables
- variables to be used in the Executor scripte
- the context where the Executor was startedargs
- arguments passed from the interpreted codeException