Class ProcessExecutorParams


  • public abstract class ProcessExecutorParams
    extends Object
    Value type passed to ProcessExecutor to launch a process.
    • Constructor Detail

      • ProcessExecutorParams

        public ProcessExecutorParams()
    • Method Detail

      • getCommand

        public abstract com.google.common.collect.ImmutableList<String> getCommand()
        The command and arguments to launch.
      • getDirectory

        public abstract Optional<Path> getDirectory()
        If present, the current working directory for the launched process.
      • getEnvironment

        public abstract Optional<com.google.common.collect.ImmutableMap<String,​String>> getEnvironment()
        If present, the map of environment variables used for the launched process. Otherwise, inherits the current process's environment.
      • getRedirectInput

        public abstract Optional<ProcessBuilder.Redirect> getRedirectInput()
        If present, redirects stdout for the process to this location. Otherwise, opens a pipe for stdout.
      • getRedirectOutput

        public abstract Optional<ProcessBuilder.Redirect> getRedirectOutput()
        If present, redirects stdin for the process to this location. Otherwise, opens a pipe for stdin.
      • getRedirectError

        public abstract Optional<ProcessBuilder.Redirect> getRedirectError()
        If present, redirects stderr for the process to this location. Otherwise, opens a pipe for stderr.
      • getRedirectErrorStream

        public abstract Optional<Boolean> getRedirectErrorStream()