Class ProcessContext

java.lang.Object
de.hybris.platform.mediaconversion.os.ProcessContext

public class ProcessContext extends Object
Objects of this class aggregate the information needed to executed and process a operation system level process.
  • Constructor Details

    • ProcessContext

      public ProcessContext(String[] command, String[] environment, File directory, Drain stdOutput, Drain stdError)
      Creates a new ProcessContext object.
      Parameters:
      command - the command line to execute.
      environment - the environment as array of name=value pairs or null to inherit the environment of the executing JVM.
      directory - the directory in which to execute the command (or null to execute in the current directory of the executing JMV).
      stdOutput - call back to handle std output of the executed process
      stdError - call back to handle std error output of the executed process
      See Also:
    • ProcessContext

      public ProcessContext(ProcessCommand command, Drain stdOutput, Drain stdError)
      Creates a new ProcessContext object.
      Parameters:
      command - the command and environment to execute
      stdOutput - call back to handle std output of the executed process
      stdError - call back to handle std error output of the executed process
  • Method Details

    • getStdOutput

      public Drain getStdOutput()
    • getStdError

      public Drain getStdError()
    • getContext

      public final ProcessCommand getContext()
    • getCommand

      public String[] getCommand()
    • getEnvironment

      public String[] getEnvironment()
    • getDirectory

      public File getDirectory()