Packages

t

io.github.vigoo.prox

ProxZStream

trait ProxZStream extends Prox

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProxZStream
  2. Prox
  3. SyntaxModule
  4. ProcessRunnerModule
  5. RedirectionModule
  6. ProcessGroupModule
  7. ProcessModule
  8. CommonModule
  9. ProxRuntime
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait ProcessLikeConfiguration extends AnyRef
    Definition Classes
    CommonModule
  2. trait ProcessGroup[O, E] extends ProcessLike with Prox.ProcessGroupConfiguration[O, E]

    Process group is two or more processes attached to each other

    Process group is two or more processes attached to each other

    This implements a pipeline of processes. The input of the first process and the output of the last process is redirectable with the RedirectableInput and RedirectableOutput traits. The processes are attached to each other's input/output streams, the pipe between them is customizable.

    The error streams are also redirectable with the RedirectableErrors trait.

    O

    Output type

    E

    Error output type

    Definition Classes
    ProcessGroupModule
  3. trait ProcessGroupConfiguration[O, E] extends Prox.ProcessLikeConfiguration
    Definition Classes
    ProcessGroupModule
  4. trait ProcessGroupResult[+O, +E] extends AnyRef

    Result of an executed process group

    Result of an executed process group

    O

    Output type

    E

    Error output type

    Definition Classes
    ProcessGroupModule
  5. trait RunningProcessGroup[O, E, +Info] extends AnyRef

    Representation of a running process group

    Representation of a running process group

    O

    Output type

    E

    Error output type

    Info

    Runner-specific per-process information type

    Definition Classes
    ProcessGroupModule
  6. case class SimpleProcessGroupResult[+O, +E](exitCodes: Map[Prox.Process[Unit, Unit], Prox.ProxExitCode], output: O, errors: Map[Prox.Process[Unit, Unit], E]) extends Prox.ProcessGroupResult[O, E] with Product with Serializable

    Default implementation of ProcessGroupResult

    Default implementation of ProcessGroupResult

    Definition Classes
    ProcessGroupModule
  7. trait Process[O, E] extends ProcessLike with Prox.ProcessConfiguration

    Describes a system process to be executed

    Describes a system process to be executed

    This base trait is always extended with redirection and configuration capabilities represented by the traits ProcessConfiguration, RedirectableInput, RedirectableOutput and RedirectableError.

    To create a process use the constructor in the companion object Process.apply.

    The process specification not only encodes the process to be started but also how its input, output and error streams are redirected and executed. For this reason the effect type is also bound by the process, not just at execution time.

    O

    Output type

    E

    Error output type

    Definition Classes
    ProcessModule
  8. trait ProcessConfiguration extends Prox.ProcessLikeConfiguration

    The capability to configure process execution details

    The capability to configure process execution details

    Definition Classes
    ProcessModule
  9. trait ProcessResult[+O, +E] extends AnyRef

    Result of a finished process

    Result of a finished process

    O

    Output type

    E

    Error output type

    Definition Classes
    ProcessModule
  10. trait RunningProcess[O, E, +Info] extends AnyRef

    Representation of a running process

    Representation of a running process

    O

    Output type

    E

    Error output type

    Info

    Runner-specific process information

    Definition Classes
    ProcessModule
  11. case class SimpleProcessResult[+O, +E](exitCode: Prox.ProxExitCode, output: O, error: E) extends Prox.ProcessResult[O, E] with Product with Serializable

    Default implementation of ProcessResult

    Default implementation of ProcessResult

    Definition Classes
    ProcessModule
  12. class JVMProcessInfo extends AnyRef
    Definition Classes
    ProcessRunnerModule
  13. class JVMProcessRunner extends Prox.JVMProcessRunnerBase[Prox.JVMProcessInfo]
    Definition Classes
    ProcessRunnerModule
  14. abstract class JVMProcessRunnerBase[Info <: Prox.JVMProcessInfo] extends Prox.ProcessRunner[Info]

    Default implementation of ProcessRunner using the Java process API

    Default implementation of ProcessRunner using the Java process API

    Definition Classes
    ProcessRunnerModule
  15. class JVMRunningProcess[O, E, +Info <: Prox.JVMProcessInfo] extends Prox.RunningProcess[O, E, Info]

    Default implementation of RunningProcess using the Java process API

    Default implementation of RunningProcess using the Java process API

    Definition Classes
    ProcessRunnerModule
  16. class JVMRunningProcessGroup[O, E, +Info <: Prox.JVMProcessInfo] extends Prox.RunningProcessGroup[O, E, Info]

    Default implementation of RunningProcessGroup using the Java process API

    Default implementation of RunningProcessGroup using the Java process API

    Definition Classes
    ProcessRunnerModule
  17. trait ProcessRunner[Info] extends AnyRef

    Interface for running processes and process groups

    Interface for running processes and process groups

    The default implementation is JVMProcessRunner

    Info

    The type of information provided for a started process

    Definition Classes
    ProcessRunnerModule
  18. implicit class FiberOps[A] extends AnyRef
    Attributes
    protected
    Definition Classes
    ProxRuntime
  19. implicit class IOOps[A] extends AnyRef
    Attributes
    protected
    Definition Classes
    ProxRuntime
  20. implicit class ListProxErrorOps extends AnyRef
    Attributes
    protected
    Definition Classes
    ProxRuntime
  21. implicit class MonoidStreamOps[A] extends AnyRef
    Attributes
    protected
    Definition Classes
    ProxRuntime
  22. implicit class ResourceOps[A] extends AnyRef
    Attributes
    protected
    Definition Classes
    ProxRuntime
  23. implicit class StreamOps[A] extends AnyRef
    Attributes
    protected
    Definition Classes
    ProxRuntime
  24. type ProxExitCode = ExitCode
    Definition Classes
    ProxZStreamProxRuntime
  25. type ProxFiber[A] = Fiber[ProxError, A]
    Definition Classes
    ProxZStreamProxRuntime
  26. type ProxIO[A] = ZIO[Any, ProxError, A]
    Definition Classes
    ProxZStreamProxRuntime
  27. type ProxMonoid[A] = Identity[A]
    Definition Classes
    ProxZStreamProxRuntime
  28. type ProxPipe[A, B] = (ProxStream[A]) => ProxStream[B]
    Definition Classes
    ProxZStreamProxRuntime
  29. type ProxResource[A] = ZIO[Scope, ProxError, A]
    Definition Classes
    ProxZStreamProxRuntime
  30. type ProxSink[A] = TransformAndSink[A, _]
    Definition Classes
    ProxZStreamProxRuntime
  31. type ProxStream[A] = ZStream[Any, ProxError, A]
    Definition Classes
    ProxZStreamProxRuntime
  32. case class TransformAndSink[A, B](transform: (ZStream[Any, ProxError, A]) => ZStream[Any, ProxError, B], sink: ZSink[Any, ProxError, B, Any, Unit]) extends Product with Serializable
  33. case class AllCapturedThroughPipe[O, OR](pipeFn: (Prox.Process[_, _]) => Prox.ProxPipe[Byte, O], runner: (Prox.ProxStream[O]) => Prox.ProxIO[OR], chunkSize: Int = 8192) extends Prox.GroupErrorRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  34. case class AllCapturedToSink(sinkFn: (Prox.Process[_, _]) => Prox.ProxSink[Byte], chunkSize: Int = 8192) extends Prox.GroupErrorRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  35. case class AllToFile(pathFn: (Prox.Process[_, _]) => Path, append: Boolean) extends Prox.GroupErrorRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  36. case class AllToStdErr() extends Prox.GroupErrorRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  37. sealed trait GroupErrorRedirection extends AnyRef

    Supported process group error redirection types.

    Supported process group error redirection types. Should not be used directly, see the redirection traits instead.

    Definition Classes
    RedirectionModule
  38. trait GroupErrorRedirectionType[R] extends AnyRef

    Helper type class for process group error redirection dependent typing

    Helper type class for process group error redirection dependent typing

    Definition Classes
    RedirectionModule
  39. case class InputFile(path: Path) extends Prox.InputRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  40. sealed trait InputRedirection extends AnyRef

    Supported input redirection types.

    Supported input redirection types. Should not be used directly, see the redirection traits instead.

    Definition Classes
    RedirectionModule
  41. case class InputStream(stream: Prox.ProxStream[Byte], flushChunks: Boolean) extends Prox.InputRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  42. case class OutputFile(path: Path, append: Boolean) extends Prox.OutputRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  43. sealed trait OutputRedirection extends AnyRef

    Supported output redirection types.

    Supported output redirection types. Should not be used directly, see the redirection traits instead.

    Definition Classes
    RedirectionModule
  44. trait OutputRedirectionType[R] extends AnyRef

    Helper type class for output and error redirection dependent typing

    Helper type class for output and error redirection dependent typing

    Definition Classes
    RedirectionModule
  45. case class OutputStreamThroughPipe[O, OR](pipe: Prox.ProxPipe[Byte, O], runner: (Prox.ProxStream[O]) => Prox.ProxIO[OR], chunkSize: Int = 8192) extends Prox.OutputRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  46. case class OutputStreamToSink(sink: Prox.ProxSink[Byte], chunkSize: Int = 8192) extends Prox.OutputRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  47. trait RedirectableError[+P[_] <: Prox.Process[_, _]] extends AnyRef

    The capability to redirect the error output of a process

    The capability to redirect the error output of a process

    P

    Self type without the RedirectableError capability

    Definition Classes
    RedirectionModule
  48. trait RedirectableErrors[+P[_] <: Prox.ProcessGroup[_, _]] extends AnyRef

    The capability to redirect all the error outputs simultaneously of a process group

    The capability to redirect all the error outputs simultaneously of a process group

    P

    Self type without the RedirectableErrors capability

    Definition Classes
    RedirectionModule
  49. trait RedirectableInput[+P <: ProcessLike] extends AnyRef

    The capability to redirect the input of a process or process group

    The capability to redirect the input of a process or process group

    Definition Classes
    RedirectionModule
  50. trait RedirectableOutput[+P[_] <: ProcessLike] extends AnyRef

    The capability to redirect the output of a process or a process group

    The capability to redirect the output of a process or a process group

    P

    Self type without the RedirectableOutput capability

    Definition Classes
    RedirectionModule
  51. case class StdIn() extends Prox.InputRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  52. case class StdOut() extends Prox.OutputRedirection with Product with Serializable
    Definition Classes
    RedirectionModule
  53. trait PipeBuilder[P] extends AnyRef
    Definition Classes
    SyntaxModule
  54. class PipeBuilderSyntax[P] extends AnyRef
    Definition Classes
    SyntaxModule
  55. implicit class ProcessPiping extends AnyRef

    Extension methods for unbound processes enabling the creation of process groups

    Extension methods for unbound processes enabling the creation of process groups

    Definition Classes
    SyntaxModule
  56. implicit class ProcessStringContextIO extends AnyRef

    String interpolator for an alternative of Process.apply

    String interpolator for an alternative of Process.apply

    val process = proc"ls -hal $dir"
    Definition Classes
    SyntaxModule

Value Members

  1. object ProcessGroup
    Definition Classes
    ProcessGroupModule
  2. object Process
    Definition Classes
    ProcessModule
  3. object JVMProcessRunnerBase
    Definition Classes
    ProcessRunnerModule
  4. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def ##: Int
    Definition Classes
    AnyRef → Any
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. final def blockingEffect[A](f: => A, wrapError: (Throwable) => ProxError): ProxIO[A]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  9. final def bracket[A, B](acquire: ProxIO[A])(use: (A) => ProxIO[B])(fin: (A, IOResult) => ProxIO[Unit]): ProxIO[B]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  10. final def cancelFiber[A](f: ProxFiber[A]): ProxIO[Unit]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @jdk.internal.HotSpotIntrinsicCandidate() @native()
  12. final def drainStream[A](s: ProxStream[A]): ProxIO[Unit]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  13. final def drainToJavaOutputStream(stream: ProxStream[Byte], output: OutputStream, flushChunks: Boolean): ProxIO[Unit]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  14. final def effect[A](f: => A, wrapError: (Throwable) => ProxError): ProxIO[A]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. final def exitCodeFromInt(value: Int): ProxExitCode
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  18. final def foldMonoidStream[A](s: ProxStream[A])(implicit arg0: Identity[A]): ProxIO[A]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  19. final def foldStream[A, B](s: ProxStream[A], init: B, f: (B, A) => B): ProxIO[B]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  20. final def fromJavaInputStream(input: java.io.InputStream, chunkSize: Int): ProxStream[Byte]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @jdk.internal.HotSpotIntrinsicCandidate() @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @jdk.internal.HotSpotIntrinsicCandidate() @native()
  23. final def identityPipe[A]: ProxPipe[A, A]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  24. final def ioFlatMap[A, B](io: ProxIO[A], f: (A) => ProxIO[B]): ProxIO[B]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  25. final def ioMap[A, B](io: ProxIO[A], f: (A) => B): ProxIO[B]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def joinFiber[A](f: ProxFiber[A]): ProxIO[A]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  28. final def makeResource[A](acquire: ProxIO[A], release: (A) => ProxIO[Unit]): ProxResource[A]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @jdk.internal.HotSpotIntrinsicCandidate() @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @jdk.internal.HotSpotIntrinsicCandidate() @native()
  32. final def pure[A](value: A): ProxIO[A]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  33. final def raiseError(error: ProxError): ProxIO[Unit]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  34. final def runStreamTo[A](s: ProxStream[A], sink: ProxSink[A]): ProxIO[Unit]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  35. implicit def sinkAsTransformAndSink[A](sink: ZSink[Any, ProxError, A, Any, Unit]): TransformAndSink[A, A]
  36. final def startFiber[A](f: ProxIO[A]): ProxIO[ProxFiber[A]]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  37. final def streamThrough[A, B](s: ProxStream[A], pipe: ProxPipe[A, B]): ProxStream[B]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  38. final def streamToVector[A](s: ProxStream[A]): ProxIO[Vector[A]]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. implicit def transducerAsPipe[A, B](transducer: ZPipeline[Any, ProxError, A, B]): ProxPipe[A, B]
  42. implicit def transducerAsPipeThrowable[A, B](transducer: ZPipeline[Any, Throwable, A, B]): ProxPipe[A, B]
  43. final def traverse[A, B](list: List[A])(f: (A) => ProxIO[B]): ProxIO[List[B]]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  44. final def unit: ProxIO[Unit]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  45. final def useResource[A, B](r: ProxResource[A], f: (A) => ProxIO[B]): ProxIO[B]
    Attributes
    protected
    Definition Classes
    ProxZStreamProxRuntime
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  49. object TransformAndSink extends Serializable
  50. object GroupErrorRedirectionType
    Definition Classes
    RedirectionModule
  51. object OutputRedirectionType
    Definition Classes
    RedirectionModule
  52. object RedirectableErrors
    Definition Classes
    RedirectionModule

Deprecated Value Members

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

    (Since version 9)

Inherited from Prox

Inherited from SyntaxModule

Inherited from ProcessRunnerModule

Inherited from RedirectionModule

Inherited from ProcessGroupModule

Inherited from ProcessModule

Inherited from CommonModule

Inherited from ProxRuntime

Inherited from AnyRef

Inherited from Any

Ungrouped