Packages

case class ProcessGroupImpl(firstProcess: UnboundIEProcess[Prox.ProxStream[Byte]], innerProcesses: List[UnboundIEProcess[Prox.ProxStream[Byte]]], lastProcess: UnboundProcess, originalProcesses: List[Prox.Process[Unit, Unit]]) extends Prox.ProcessGroup[Unit, Unit] with Prox.RedirectableOutput[[α$6$]ProcessGroupImplO[α$6$]] with Prox.RedirectableInput[ProcessGroupImplI] with Prox.RedirectableErrors[[α$7$]ProcessGroupImplE[α$7$]] with Product with Serializable

Process group with unbound input, output and error streams

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProcessGroupImpl
  2. Serializable
  3. Product
  4. Equals
  5. RedirectableErrors
  6. RedirectableInput
  7. RedirectableOutput
  8. ProcessGroup
  9. ProcessGroupConfiguration
  10. ProcessLikeConfiguration
  11. ProcessLike
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ProcessGroupImpl(firstProcess: UnboundIEProcess[Prox.ProxStream[Byte]], innerProcesses: List[UnboundIEProcess[Prox.ProxStream[Byte]]], lastProcess: UnboundProcess, originalProcesses: List[Prox.Process[Unit, Unit]])

Value Members

  1. def !<(stream: Prox.ProxStream[Byte]): ProcessGroupImplI

    Feed the process input from a byte stream with flushing per chunks enabled.

    Feed the process input from a byte stream with flushing per chunks enabled.

    An alias for fromStream.

    stream

    Input stream

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. def !>(sink: Prox.ProxSink[Byte]): ProcessGroupImplE[Unit]

    Redirects the error outputs to a sink.

    Redirects the error outputs to a sink.

    The process error output type will be Unit. An alias for errorsToSink

    sink

    Target sink

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    RedirectableErrors
  4. def !>#[O](pipe: Prox.ProxPipe[Byte, O])(implicit arg0: Prox.ProxMonoid[O]): ProcessGroupImplE[O]

    Redirects the error outputs to a pipe and folds its output with a monoid instance.

    Redirects the error outputs to a pipe and folds its output with a monoid instance.

    The process error output type will be the same as the pipe's output type. An alias for errorsToFoldMonoid

    O

    Output type of the pipe. Must have a monoid instance.

    pipe

    Target pipe

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    RedirectableErrors
  5. def !>?[O](pipe: Prox.ProxPipe[Byte, O]): ProcessGroupImplE[Vector[O]]

    Redirects the error outputs to a pipe and collects its output to a vector

    Redirects the error outputs to a pipe and collects its output to a vector

    The process error output type will be a vector of the pipe's output type. An alias for errorsToVector

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    RedirectableErrors
  6. final def ##: Int
    Definition Classes
    AnyRef → Any
  7. def <(stream: Prox.ProxStream[Byte]): ProcessGroupImplI

    Feed the process input from a byte stream.

    Feed the process input from a byte stream.

    An alias for fromStream.

    stream

    Input stream

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  8. def <(path: Path): ProcessGroupImplI

    Feed the process input from a file natively.

    Feed the process input from a file natively.

    An alias for fromFile.

    path

    Path to the file

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def >(path: Path): ProcessGroupImplO[Unit]

    Redirects the output to a file natively

    Redirects the output to a file natively

    An alias for toFile

    path

    Target file path

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  11. def >(sink: Prox.ProxSink[Byte]): ProcessGroupImplO[Unit]

    Redirects the output to a sink.

    Redirects the output to a sink.

    The process output type will be Unit. An alias for toSink

    sink

    Target sink

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  12. def >#[O](pipe: Prox.ProxPipe[Byte, O])(implicit arg0: Prox.ProxMonoid[O]): ProcessGroupImplO[O]

    Redirects the output to a pipe and folds its output with a monoid instance.

    Redirects the output to a pipe and folds its output with a monoid instance.

    The process output type will be the same as the pipe's output type. An alias for toFoldMonoid

    O

    Output type of the pipe. Must have a monoid instance.

    pipe

    Target pipe

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  13. def >>(path: Path): ProcessGroupImplO[Unit]

    Redirects the output to a file natively in append mode

    Redirects the output to a file natively in append mode

    An alias for appendToFile

    path

    Target file path

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  14. def >?[O](pipe: Prox.ProxPipe[Byte, O]): ProcessGroupImplO[Vector[O]]

    Redirects the output to a pipe and collects its output to a vector

    Redirects the output to a pipe and collects its output to a vector

    The process output type will be a vector of the pipe's output type. An alias for toVector

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  15. def appendToFile(path: Path): ProcessGroupImplO[Unit]

    Redirects the output to a file natively in append mode

    Redirects the output to a file natively in append mode

    An alias for >>

    path

    Target file path

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  16. def applyConfiguration(workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String]): Self
    Attributes
    protected
    Definition Classes
    ProcessGroupConfigurationProcessLikeConfiguration
  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  19. def connectErrors[R <: Prox.GroupErrorRedirection, OR <: Prox.OutputRedirection, E](target: R)(implicit groupErrorRedirectionType: Aux[R, OR, E], outputRedirectionType: Aux[OR, E]): ProcessGroupImplE[E]

    The low level operation to attach an error output to all the processes in the group.

    The low level operation to attach an error output to all the processes in the group.

    Use one of the other methods of this trait or the advanced interface represented by customizedPerProcess for convenience.

    This is the place where the process group's error output type gets calculated using the GroupErrorRedirectionType and OutputRedirectionType type classes.

    R

    Error output grouped redirection type

    OR

    Error output redirection type

    E

    Error output type

    target

    Redirection target

    groupErrorRedirectionType

    Helper for dependent error output type

    outputRedirectionType

    Helper for dependent error output type

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    ProcessGroupImplRedirectableErrors
  20. def connectInput(source: Prox.InputRedirection): ProcessGroupImplI

    The low level method to attach an input to a process or process group.

    The low level method to attach an input to a process or process group.

    Use the other methods in this trait for convenience.

    source

    Redirection source

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    ProcessGroupImplRedirectableInput
  21. def connectOutput[R <: Prox.OutputRedirection, RO](target: R)(implicit outputRedirectionType: Aux[R, RO]): ProcessGroupImplO[RO]

    The low level operation to attach an output to a process

    The low level operation to attach an output to a process

    Use one of the other methods of this trait for convenience. This is the place where the output type gets calculated with a helper type class called OutputRedirectionType which implements the type level computation for figuring out O.

    R

    Output redirection type

    target

    Redirection target

    outputRedirectionType

    Helper for dependent output type

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    ProcessGroupImplRedirectableOutput
  22. lazy val customizedPerProcess: CustomizedPerProcess[[α$7$]ProcessGroupImplE[α$7$]]

    A more advanced interface for customizing the redirection per process

    A more advanced interface for customizing the redirection per process

    Definition Classes
    RedirectableErrors
  23. def drainErrors[O](pipe: Prox.ProxPipe[Byte, O]): ProcessGroupImplE[Unit]

    Redirects the error outputs to a pipe and drains it regardless of its output type.

    Redirects the error outputs to a pipe and drains it regardless of its output type.

    The process error output type will be Unit.

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    RedirectableErrors
  24. def drainOutput[O](pipe: Prox.ProxPipe[Byte, O]): ProcessGroupImplO[Unit]

    Redirects the output to a pipe and drains it regardless of its output type.

    Redirects the output to a pipe and drains it regardless of its output type.

    The process output type will be Unit.

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  25. val environmentVariables: Map[String, String]
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def errorsToFoldMonoid[O](pipe: Prox.ProxPipe[Byte, O])(implicit arg0: Prox.ProxMonoid[O]): ProcessGroupImplE[O]

    Redirects the error outputs to a pipe and folds its output with a monoid instance.

    Redirects the error outputs to a pipe and folds its output with a monoid instance.

    The process error output type will be the same as the pipe's output type. An alias for !>#

    O

    Output type of the pipe. Must have a monoid instance.

    pipe

    Target pipe

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    RedirectableErrors
  28. def errorsToSink(sink: Prox.ProxSink[Byte]): ProcessGroupImplE[Unit]

    Redirects the error outputs to a sink.

    Redirects the error outputs to a sink.

    The process error output type will be Unit. An alias for !>

    sink

    Target sink

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    RedirectableErrors
  29. def errorsToVector[O](pipe: Prox.ProxPipe[Byte, O]): ProcessGroupImplE[Vector[O]]

    Redirects the error outputs to a pipe and collects its output to a vector

    Redirects the error outputs to a pipe and collects its output to a vector

    The process error output type will be a vector of the pipe's output type. An alias for !>?

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    RedirectableErrors
  30. val firstProcess: UnboundIEProcess[Prox.ProxStream[Byte]]
    Definition Classes
    ProcessGroupImplProcessGroup
  31. def foldErrors[O, R](pipe: Prox.ProxPipe[Byte, O], init: R, fn: (R, O) => R): ProcessGroupImplE[R]

    Redirects the error outputs to a pipe and folds it with a custom function.

    Redirects the error outputs to a pipe and folds it with a custom function.

    The process error output type will be R.

    O

    Output type of the pipe

    R

    Result type of the fold

    pipe

    Target pipe

    init

    The initial value for the fold

    fn

    The fold function

    returns

    Returns a new process group with all the error streams redirected and the error redirection capability removed.

    Definition Classes
    RedirectableErrors
  32. def foldOutput[O, R](pipe: Prox.ProxPipe[Byte, O], init: R, fn: (R, O) => R): ProcessGroupImplO[R]

    Redirects the output to a pipe and folds it with a custom function.

    Redirects the output to a pipe and folds it with a custom function.

    The process output type will be R.

    O

    Output type of the pipe

    R

    Result type of the fold

    pipe

    Target pipe

    init

    The initial value for the fold

    fn

    The fold function

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  33. def fromFile(path: Path): ProcessGroupImplI

    Feed the process input from a file natively.

    Feed the process input from a file natively.

    An alias for <.

    path

    Path to the file

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  34. def fromStream(stream: Prox.ProxStream[Byte], flushChunks: Boolean): ProcessGroupImplI

    Feed the process input from a byte stream.

    Feed the process input from a byte stream.

    An alias for < and !<.

    stream

    Input stream

    flushChunks

    Flush the process input stream after each chunk

    returns

    A new process or process group with the input redirected and the input redirection capability removed.

    Definition Classes
    RedirectableInput
  35. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  36. def in(workingDirectory: Path): Self

    Changes the working directory of the process

    Changes the working directory of the process

    workingDirectory

    the working directory

    returns

    a new process with the working directory set

    Definition Classes
    ProcessLikeConfiguration
  37. def inInheritedWorkingDirectory(): Self

    Use the inherited working directory of the process instead of an explicit one

    Use the inherited working directory of the process instead of an explicit one

    returns

    a new process with the working directory cleared

    Definition Classes
    ProcessLikeConfiguration
  38. val innerProcesses: List[UnboundIEProcess[Prox.ProxStream[Byte]]]
    Definition Classes
    ProcessGroupImplProcessGroup
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. val lastProcess: UnboundProcess
    Definition Classes
    ProcessGroupImplProcessGroup
  41. def map(f: Mapper[Unit, Unit]): ProcessGroupImpl

    Applies the given mapper to each process in the group

    Applies the given mapper to each process in the group

    f

    process mapper

    returns

    a new process group with all the processes altered by the mapper

    Definition Classes
    ProcessGroupImplProcessGroup
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  45. val originalProcesses: List[Prox.Process[Unit, Unit]]
    Definition Classes
    ProcessGroupImplProcessGroup
  46. def pipeInto(other: UnboundProcess, channel: Prox.ProxPipe[Byte, Byte]): ProcessGroupImpl
  47. def productElementNames: Iterator[String]
    Definition Classes
    Product
  48. val removedEnvironmentVariables: Set[String]
  49. def run[Info]()(implicit runner: Prox.ProcessRunner[Info]): Prox.ProxIO[Prox.ProcessGroupResult[Unit, Unit]]

    Starts the process group asynchronously and blocks the execution until it is finished

    Starts the process group asynchronously and blocks the execution until it is finished

    runner

    The process runner to be used

    returns

    the result of the finished processes

    Definition Classes
    ProcessGroup
  50. def start[Info]()(implicit runner: Prox.ProcessRunner[Info]): Prox.ProxResource[Prox.ProxFiber[Prox.ProcessGroupResult[Unit, Unit]]]

    Starts the process group asynchronously and returns a closeable fiber representing it

    Starts the process group asynchronously and returns a closeable fiber representing it

    Joining the fiber waits for the processes to be terminated. Canceling the fiber terminates the processesnormally (with SIGTERM).

    runner

    The process runner to be used

    returns

    a managed fiber representing the running processes

    Definition Classes
    ProcessGroup
  51. def startProcessGroup[Info]()(implicit runner: Prox.ProcessRunner[Info]): Prox.ProxIO[Prox.RunningProcessGroup[Unit, Unit, Info]]

    Starts the process group asynchronously and returns the RunningProcessGroup interface for it

    Starts the process group asynchronously and returns the RunningProcessGroup interface for it

    This is the most advanced way to start process groups. See start and run as alternatives.

    Info

    The runner-specific information about the started processes

    runner

    The process runner to be used

    returns

    interface for handling the running process group

    Definition Classes
    ProcessGroup
  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. def toFile(path: Path): ProcessGroupImplO[Unit]

    Redirects the output to a file natively

    Redirects the output to a file natively

    An alias for >

    path

    Target file path

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  54. def toFoldMonoid[O](pipe: Prox.ProxPipe[Byte, O])(implicit arg0: Prox.ProxMonoid[O]): ProcessGroupImplO[O]

    Redirects the output to a pipe and folds its output with a monoid instance.

    Redirects the output to a pipe and folds its output with a monoid instance.

    The process output type will be the same as the pipe's output type. An alias for >#

    O

    Output type of the pipe. Must have a monoid instance.

    pipe

    Target pipe

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  55. def toSink(sink: Prox.ProxSink[Byte]): ProcessGroupImplO[Unit]

    Redirects the output to a sink.

    Redirects the output to a sink.

    The process output type will be Unit. An alias for >

    sink

    Target sink

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  56. def toVector[O](pipe: Prox.ProxPipe[Byte, O]): ProcessGroupImplO[Vector[O]]

    Redirects the output to a pipe and collects its output to a vector

    Redirects the output to a pipe and collects its output to a vector

    The process output type will be a vector of the pipe's output type. An alias for >?

    O

    Output type of the pipe

    pipe

    Target pipe

    returns

    Returns a new process or process group with its output redirected and its output redirection capability removed.

    Definition Classes
    RedirectableOutput
  57. def via(channel: Prox.ProxPipe[Byte, Byte]): Prox.PipeBuilderSyntax[ProcessGroupImpl]
  58. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  59. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  60. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  61. def with(nameValuePair: (String, String)): Self

    Adds an environment variable to the process

    Adds an environment variable to the process

    nameValuePair

    A pair of name and value

    returns

    a new process with the working directory set

    Definition Classes
    ProcessLikeConfiguration
  62. def without(name: String): Self

    Removes an environment variable from the process

    Removes an environment variable from the process

    Usable to remove variables inherited from the parent process.

    name

    Name of the environment variable

    returns

    a new process with the working directory set

    Definition Classes
    ProcessLikeConfiguration
  63. val workingDirectory: Option[Path]
  64. def |(other: UnboundProcess): ProcessGroupImpl
  65. object ConfigApplication
    Definition Classes
    ProcessGroupConfiguration

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Prox.RedirectableErrors[[α$7$]ProcessGroupImplE[α$7$]]

Inherited from Prox.RedirectableOutput[[α$6$]ProcessGroupImplO[α$6$]]

Inherited from Prox.ProcessGroup[Unit, Unit]

Inherited from Prox.ProcessGroupConfiguration[Unit, Unit]

Inherited from ProcessLike

Inherited from AnyRef

Inherited from Any

Ungrouped