Class ProcessContext
java.lang.Object
de.hybris.platform.mediaconversion.os.ProcessContext
Objects of this class aggregate the information needed to executed and process a operation system level process.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessContext(ProcessCommand command, Drain stdOutput, Drain stdError) Creates a newProcessContextobject.ProcessContext(String[] command, String[] environment, File directory, Drain stdOutput, Drain stdError) Creates a newProcessContextobject. -
Method Summary
-
Constructor Details
-
ProcessContext
public ProcessContext(String[] command, String[] environment, 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:
-
ProcessContext
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 Details
-
getStdOutput
-
getStdError
-
getContext
-
getCommand
-
getEnvironment
-
getDirectory
-