@Service(value=ScriptExecService.class) public class ScriptExecServiceImpl extends Object implements ScriptExecService
| Constructor and Description |
|---|
ScriptExecServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ScriptExec |
create(Map<String,Object> args,
Object parent,
Threads threads,
com.anrisoftware.resources.templates.external.TemplateResource templateResource,
String name)
Create the script exec.
|
protected void |
start() |
public ScriptExec create(Map<String,Object> args, Object parent, Threads threads, com.anrisoftware.resources.templates.external.TemplateResource templateResource, String name)
ScriptExecFactorycreate in interface ScriptExecFactoryargs - the Map arguments:
log the logger that logs the command output;
runCommands optionally, set to the
RunCommands to record the command.
outString optionally, set to true to save
the output in a String for later parsing, see
ProcessTask.getOut();
errString optionally, set to true to save
the error output in a String for later parsing, see
ProcessTask.getErr(). Per default it is set to
AbstractProcessExec.ERR_STRING_DEFAULT.
timeout optionally, set the timeout
Duration;
destroyOnTimeout optionally, set to true
to destroy the process on timeout;
checkExitCodes optionally, set to true to
check the exit code(s) of the process;
exitCodes optionally, set an int-array of success
exit codes;
exitCode optionally, set the success exit code of
the process;
parent - the Object parent script.threads - the Threads pool.templateResource - the TemplateResource.name - the String name.ScriptExec.@Activate protected void start()
Copyright © 2014–2016. All rights reserved.