Interface ScriptExecFactory
- All Known Subinterfaces:
ScriptExecService
public interface ScriptExecFactory
Factory to create the script exec.
- Since:
- 2.3
- Author:
- Erwin Mueller, erwin.mueller@deventm.org
-
Method Summary
-
Method Details
-
create
ScriptExec create(Map<String, Object> args, Object parent, Threads threads, com.anrisoftware.resources.templates.external.TemplateResource templateResource, String name) Create the script exec.- 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.
-