Class ProcessContext
- java.lang.Object
-
- de.hybris.platform.mediaconversion.os.ProcessContext
-
public class ProcessContext extends java.lang.ObjectObjects of this class aggregate the information needed to executed and process a operation system level process.
-
-
Constructor Summary
Constructors Constructor Description ProcessContext(ProcessCommand command, Drain stdOutput, Drain stdError)Creates a newProcessContextobject.ProcessContext(java.lang.String[] command, java.lang.String[] environment, java.io.File directory, Drain stdOutput, Drain stdError)Creates a newProcessContextobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getCommand()ProcessCommandgetContext()java.io.FilegetDirectory()java.lang.String[]getEnvironment()DraingetStdError()DraingetStdOutput()
-
-
-
Constructor Detail
-
ProcessContext
public ProcessContext(java.lang.String[] command, java.lang.String[] environment, java.io.File directory, Drain stdOutput, Drain stdError)Creates a newProcessContextobject.- Parameters:
command- the command line to execute.environment- the environment as array of name=value pairs ornullto inherit the environment of the executing JVM.directory- the directory in which to execute the command (ornullto execute in the current directory of the executing JMV).stdOutput- call back to handle std output of the executed processstdError- call back to handle std error output of the executed process- See Also:
ProcessCommand
-
ProcessContext
public ProcessContext(ProcessCommand command, Drain stdOutput, Drain stdError)
Creates a newProcessContextobject.- Parameters:
command- the command and environment to executestdOutput- call back to handle std output of the executed processstdError- call back to handle std error output of the executed process
-
-
Method Detail
-
getStdOutput
public Drain getStdOutput()
-
getStdError
public Drain getStdError()
-
getContext
public final ProcessCommand getContext()
-
getCommand
public java.lang.String[] getCommand()
-
getEnvironment
public java.lang.String[] getEnvironment()
-
getDirectory
public java.io.File getDirectory()
-
-