Class ScriptExecServiceImpl
- java.lang.Object
-
- com.anrisoftware.globalpom.exec.internal.scriptprocess.ScriptExecServiceImpl
-
- All Implemented Interfaces:
ScriptExecFactory,ScriptExecService
public class ScriptExecServiceImpl extends Object implements ScriptExecService
Script exec service.- Since:
- 3.1
- Author:
- Erwin Mueller, erwin.mueller@deventm.org
-
-
Constructor Summary
Constructors Constructor Description ScriptExecServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptExeccreate(Map<String,Object> args, Object parent, Threads threads, com.anrisoftware.resources.templates.external.TemplateResource templateResource, String name)Create the script exec.protected voidstart()
-
-
-
Method Detail
-
create
public ScriptExec create(Map<String,Object> args, Object parent, Threads threads, com.anrisoftware.resources.templates.external.TemplateResource templateResource, String name)
Description copied from interface:ScriptExecFactoryCreate the script exec.- Specified by:
createin interfaceScriptExecFactory- Parameters:
args- theMaparguments:logthe logger that logs the command output;runCommandsoptionally, set to theRunCommandsto record the command.outStringoptionally, set totrueto save the output in aStringfor later parsing, seeProcessTask.getOut();errStringoptionally, set totrueto save the error output in aStringfor later parsing, seeProcessTask.getErr(). Per default it is set toAbstractProcessExec.ERR_STRING_DEFAULT.timeoutoptionally, set the timeoutDuration;destroyOnTimeoutoptionally, set totrueto destroy the process on timeout;checkExitCodesoptionally, set totrueto check the exit code(s) of the process;exitCodesoptionally, set an int-array of success exit codes;exitCodeoptionally, set the success exit code of the process;
parent- theObjectparent script.threads- theThreadspool.templateResource- theTemplateResource.name- theStringname.- Returns:
- the
ScriptExec.
-
start
protected void start()
-
-