Packages

c

io.github.vigoo.prox.Process

ProcessImplIE

case class ProcessImplIE[F[_], E](command: String, arguments: List[String], workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String], outputRedirection: OutputRedirection[F], runOutputStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[Unit], errorRedirection: OutputRedirection[F], runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[E], inputRedirection: InputRedirection[F])(implicit concurrent: Concurrent[F]) extends Process[F, Unit, E] with RedirectableOutput[F, [β$9$]ProcessImplIOE[F, β$9$, E]] with ProcessConfiguration[F, ProcessImplIE[F, E]] with Product with Serializable

Process with bound input and error streams

Linear Supertypes
Serializable, Serializable, Product, Equals, ProcessConfiguration[F, ProcessImplIE[F, E]], RedirectableOutput[F, [β$9$]ProcessImplIOE[F, β$9$, E]], Process[F, Unit, E], ProcessLike[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProcessImplIE
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ProcessConfiguration
  7. RedirectableOutput
  8. Process
  9. ProcessLike
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ProcessImplIE(command: String, arguments: List[String], workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String], outputRedirection: OutputRedirection[F], runOutputStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[Unit], errorRedirection: OutputRedirection[F], runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[E], inputRedirection: InputRedirection[F])(implicit concurrent: Concurrent[F])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def >(path: Path): ProcessImplIOE[F, Unit, E]

    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
  5. def >(sink: Pipe[F, Byte, Unit]): ProcessImplIOE[F, Unit, E]

    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
  6. def >#[O](pipe: Pipe[F, Byte, O])(implicit arg0: Monoid[O]): ProcessImplIOE[F, O, E]

    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
  7. def >>(path: Path): ProcessImplIOE[F, Unit, E]

    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
  8. def >?[O](pipe: Pipe[F, Byte, O]): ProcessImplIOE[F, Vector[O], E]

    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
  9. def appendToFile(path: Path): ProcessImplIOE[F, Unit, E]

    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
  10. val arguments: List[String]
    Definition Classes
    ProcessImplIEProcess
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  13. val command: String
    Definition Classes
    ProcessImplIEProcess
  14. implicit val concurrent: Concurrent[F]
    Definition Classes
    ProcessImplIERedirectableOutputProcess
  15. def connectOutput[R <: OutputRedirection[F], RO](target: R)(implicit outputRedirectionType: Aux[F, R, RO]): ProcessImplIOE[F, RO, E]

    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
    ProcessImplIERedirectableOutput
  16. def drainOutput[O](pipe: Pipe[F, Byte, O]): ProcessImplIOE[F, Unit, E]

    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
  17. val environmentVariables: Map[String, String]
    Definition Classes
    ProcessImplIEProcess
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. val errorRedirection: OutputRedirection[F]
    Definition Classes
    ProcessImplIEProcess
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def foldOutput[O, R](pipe: Pipe[F, Byte, O], init: R, fn: (R, O) ⇒ R): ProcessImplIOE[F, R, E]

    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
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def in(workingDirectory: Path): ProcessImplIE[F, E]

    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
    ProcessConfiguration
  24. val inputRedirection: InputRedirection[F]
    Definition Classes
    ProcessImplIEProcess
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. val outputRedirection: OutputRedirection[F]
    Definition Classes
    ProcessImplIEProcess
  30. val removedEnvironmentVariables: Set[String]
    Definition Classes
    ProcessImplIEProcess
  31. def run(blocker: Blocker)(implicit runner: ProcessRunner[F]): F[ProcessResult[Unit, E]]

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

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

    blocker

    Execution context for blocking operations

    runner

    The process runner to be used

    returns

    the result of the finished process

    Definition Classes
    Process
  32. val runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[E]
    Definition Classes
    ProcessImplIEProcess
  33. val runOutputStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[Unit]
    Definition Classes
    ProcessImplIEProcess
  34. def selfCopy(command: String, arguments: List[String], workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String]): ProcessImplIE[F, E]
    Attributes
    protected
    Definition Classes
    ProcessImplIEProcessConfiguration
  35. def start(blocker: Blocker)(implicit runner: ProcessRunner[F]): Resource[F, Fiber[F, ProcessResult[Unit, E]]]

    Starts the process asynchronously and returns a closeable fiber representing it

    Starts the process asynchronously and returns a closeable fiber representing it

    Joining the fiber waits for the process to be terminated. Canceling the fiber terminates the process normally (with SIGTERM).

    blocker

    Execution context for blocking operations

    runner

    The process runner to be used

    returns

    a managed fiber representing the running process

    Definition Classes
    Process
  36. def startProcess(blocker: Blocker)(implicit runner: ProcessRunner[F]): F[RunningProcess[F, Unit, E]]

    Starts the process asynchronously and returns the RunningProcess interface for it

    Starts the process asynchronously and returns the RunningProcess interface for it

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

    blocker

    Execution context for blocking operations

    runner

    The process runner to be used

    returns

    interface for handling the running process

    Definition Classes
    Process
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. def toFile(path: Path): ProcessImplIOE[F, Unit, E]

    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
  39. def toFoldMonoid[O](pipe: Pipe[F, Byte, O])(implicit arg0: Monoid[O]): ProcessImplIOE[F, O, E]

    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
  40. def toSink(sink: Pipe[F, Byte, Unit]): ProcessImplIOE[F, Unit, E]

    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
  41. def toVector[O](pipe: Pipe[F, Byte, O]): ProcessImplIOE[F, Vector[O], E]

    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
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  45. def with(nameValuePair: (String, String)): ProcessImplIE[F, E]

    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
    ProcessConfiguration
  46. def withArguments(newArguments: List[String]): ProcessImplIE[F, E]

    Replaces the arguments

    Replaces the arguments

    newArguments

    new list of arguments

    returns

    returns a new process specification

    Definition Classes
    ProcessConfiguration
  47. def withCommand(newCommand: String): ProcessImplIE[F, E]

    Replaces the command

    Replaces the command

    newCommand

    new value for the command to be executed

    returns

    returns a new process specification

    Definition Classes
    ProcessConfiguration
  48. def without(name: String): ProcessImplIE[F, E]

    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
    ProcessConfiguration
  49. val workingDirectory: Option[Path]
    Definition Classes
    ProcessImplIEProcess

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ProcessConfiguration[F, ProcessImplIE[F, E]]

Inherited from RedirectableOutput[F, [β$9$]ProcessImplIOE[F, β$9$, E]]

Inherited from Process[F, Unit, E]

Inherited from ProcessLike[F]

Inherited from AnyRef

Inherited from Any

Ungrouped