Class AbstractProcessExecutor
- java.lang.Object
-
- de.hybris.platform.mediaconversion.os.process.AbstractProcessExecutor
-
- All Implemented Interfaces:
ProcessExecutor
- Direct Known Subclasses:
BasicProcessExecutor
,LimitedProcessExecutor
,ProcessExecutorClient
public abstract class AbstractProcessExecutor extends java.lang.Object implements ProcessExecutor
AbstractProcessExecutor
providing the standard implementation ofexecute(String[], String[], File, Drain, Drain)
.
-
-
Constructor Summary
Constructors Constructor Description AbstractProcessExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(java.lang.String[] command, java.lang.String[] environment, java.io.File directory, Drain stdOutput, Drain stdError)
Shortcut method callingthis.execute(new ProcessContext(command, environment, directory, stdOutput, stdError));
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.mediaconversion.os.ProcessExecutor
execute, quit
-
-
-
-
Method Detail
-
execute
public int execute(java.lang.String[] command, java.lang.String[] environment, java.io.File directory, Drain stdOutput, Drain stdError) throws java.io.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:
execute
in 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:
java.io.IOException
- on any error executing the process.- See Also:
ProcessExecutor.execute(String[], String[], File, Drain, Drain)
-
-