Class AbstractProcessExecutor
java.lang.Object
de.hybris.platform.mediaconversion.os.process.AbstractProcessExecutor
- All Implemented Interfaces:
ProcessExecutor
- Direct Known Subclasses:
BasicProcessExecutor,LimitedProcessExecutor,ProcessExecutorClient
Abstract
ProcessExecutor providing the standard implementation
of execute(String[], String[], File, Drain, Drain).-
Constructor Details
-
AbstractProcessExecutor
public AbstractProcessExecutor()
-
-
Method Details
-
execute
public int execute(String[] command, String[] environment, File directory, Drain stdOutput, Drain stdError) throws IOException Shortcut method callingthis.execute(new ProcessContext(command, environment, directory, stdOutput, stdError));.Synchronously executes the given command in the given environment and directory.
- Specified by:
executein interfaceProcessExecutor- Parameters:
command- the command line to execute/environment- the environment to usedirectory- the directory to execute the command instdOutput- callback handle to process the processes standard outputstdError- callback handle to process the processes standard error output- Returns:
- the exit code of the process
- Throws:
IOException- on any error executing the process.- See Also:
-