public class ScriptExecutor extends Object implements EngineExecutor
Modifier and Type | Field and Description |
---|---|
static String |
APPLY_TEXT_PARAM
The script text used to apply the transform.
|
static String |
ENGINE_NAME_PARAM
The name of the script engine.
|
static String |
ENGINE_VERSION_PROPERTY
Engine version property.
|
static String |
INPUTS_ATTRIBUTE
Inputs attribute.
|
static String |
METADATA_ATTRIBUTE
Metadata attribute.
|
static String |
POINT_PARAMS_ATTRIBUTE
Point params attribute.
|
static String |
RESULT_ATTRIBUTE
Result attribute.
|
static String |
RESULTS_ATTRIBUTE
Results attribute.
|
static String |
START_FILE_PARAM
The script file used to start the engine.
|
static String |
START_TEXT_PARAM
The script text used to start the engine.
|
static String |
STOP_TEXT_PARAM
The script text used to stop the engine.
|
static String |
TRANSFORM_PARAMS_ATTRIBUTE
Transform params attribute.
|
Constructor and Description |
---|
ScriptExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this.
|
void |
disposeContext(Serializable context)
Disposes of a context.
|
List<PointValue> |
execute(ResultValue resultValue,
String[] params,
Serializable context)
Executes the processing of a request for a result value.
|
Serializable |
newContext(Params params,
Logger logger)
Returns a new context.
|
boolean |
setUp(String name,
Params params,
Config config,
Logger logger)
Sets up this engine executor.
|
void |
tearDown()
Tears down what has been set up.
|
public static final String APPLY_TEXT_PARAM
public static final String ENGINE_NAME_PARAM
public static final String ENGINE_VERSION_PROPERTY
public static final String INPUTS_ATTRIBUTE
public static final String METADATA_ATTRIBUTE
public static final String POINT_PARAMS_ATTRIBUTE
public static final String RESULTS_ATTRIBUTE
public static final String RESULT_ATTRIBUTE
public static final String START_FILE_PARAM
public static final String START_TEXT_PARAM
public static final String STOP_TEXT_PARAM
public static final String TRANSFORM_PARAMS_ATTRIBUTE
public void close()
close
in interface EngineExecutor
public void disposeContext(Serializable context)
disposeContext
in interface EngineExecutor
context
- The context.public List<PointValue> execute(ResultValue resultValue, String[] params, Serializable context) throws InterruptedException, ServiceNotReadyException
execute
in interface EngineExecutor
resultValue
- The requested result.params
- Result parameters.context
- The context.InterruptedException
- When interrupted.ServiceNotReadyException
public Serializable newContext(Params params, Logger logger)
newContext
in interface EngineExecutor
params
- The caller's parameters.logger
- The caller's logger.public boolean setUp(String name, Params params, Config config, Logger logger)
setUp
in interface EngineExecutor
name
- The caller's name.params
- The caller's parameters.config
- The configuration.logger
- The caller's logger.public void tearDown()
tearDown
in interface EngineExecutor
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.