Interface IProcessBuilderCore<X extends IProcessBuilderCore<X>>

All Superinterfaces:
Cloneable
All Known Subinterfaces:
IProcessBuilder<X>
All Known Implementing Classes:
InvokableProcessBuilderBase, InvokableProcessBuilderHost, ProcessBuilderBase, ProcessBuilderCompound, ProcessBuilderCore, ProcessBuilderDocker, ProcessBuilderDockerExec, ProcessBuilderFinalPlacement, ProcessBuilderGroup, ProcessBuilderJvm, ProcessBuilderNative, ProcessBuilderNative, ProcessBuilderPipeline

public interface IProcessBuilderCore<X extends IProcessBuilderCore<X>> extends Cloneable
Process builder for common settings without the command property.
  • Method Details

    • clone

      X clone()
    • directory

      Path directory()
    • directory

      X directory(Path directory)
    • environment

      Map<String,String> environment()
    • redirectErrorStream

      boolean redirectErrorStream()
    • redirectErrorStream

      X redirectErrorStream(boolean redirectErrorStream)
    • start

      Process start(ProcessRunner executor) throws IOException
      Throws:
      IOException
    • redirectInput

      X redirectInput(JRedirect redirect)
    • redirectInput

      JRedirect redirectInput()
    • redirectOutput

      X redirectOutput(JRedirect redirect)
    • redirectOutput

      JRedirect redirectOutput()
    • redirectError

      X redirectError(JRedirect redirect)
    • redirectError

      JRedirect redirectError()
    • supportsAnonPipeRead

      boolean supportsAnonPipeRead()
      Whether the process builder can read from anonymous pipes. Docker containers can only bind-mount named pipes but not anonymous pipes. When building pipelines, this flag is used to avoid needless intermediate anon pipes where named ones can be used directly. For pipelines, this is the value of the first process builder.
    • supportsAnonPipeWrite

      boolean supportsAnonPipeWrite()
      Whether the process builder can write to an anonymous pipe. Docker containers can only bind-mount named pipes but not anonymous pipes. When building pipelines, this flag is used to avoid needless intermediate anon pipes where named ones can be used directly. For pipelines, this is the value of the last process builder.
    • supportsDirectNamedPipe

      boolean supportsDirectNamedPipe()
      Whether a named pipe can be used with the process builder without risking blocking due to multiple connections being made to it. This method must only return true if only a single connection to that pipe will be openend. A process builder for host or docker may return true. But a group with two or more 'true-returning' members will return false.
    • accessesStdIn

      boolean accessesStdIn()
      Whether the configured command will read from stdin. Used to avoid generation of needless named or anon pipes such as in "echo foo | echo bar": where the second link does not read the data from the prior link.