RedirectableErrors

trait RedirectableErrors[+P <: ([_] =>> ProcessGroup[_, _])]

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

Type Params
P

Self type without the RedirectableErrors capability

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def connectErrors[R <: GroupErrorRedirection, OR <: OutputRedirection, E](target: R)(implicit groupErrorRedirectionType: Aux[R, OR, E], outputRedirectionType: Aux[OR, E]): P[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.

Type Params
E

Error output type

OR

Error output redirection type

R

Error output grouped redirection type

Value Params
groupErrorRedirectionType

Helper for dependent error output type

outputRedirectionType

Helper for dependent error output type

target

Redirection target

Returns

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

Concrete methods

def !>(sink: ProxSink[Byte]): P[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

Value Params
sink

Target sink

Returns

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

def !>#[O : ProxMonoid](pipe: ProxPipe[Byte, O]): P[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

Type Params
O

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

Value Params
pipe

Target pipe

Returns

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

def !>?[O](pipe: ProxPipe[Byte, O]): P[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

Type Params
O

Output type of the pipe

Value Params
pipe

Target pipe

Returns

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

def drainErrors[O](pipe: ProxPipe[Byte, O]): P[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.

Type Params
O

Output type of the pipe

Value Params
pipe

Target pipe

Returns

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

def errorsToFoldMonoid[O : ProxMonoid](pipe: ProxPipe[Byte, O]): P[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 !&gt;#

Type Params
O

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

Value Params
pipe

Target pipe

Returns

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

def errorsToSink(sink: ProxSink[Byte]): P[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 !&gt;

Value Params
sink

Target sink

Returns

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

def errorsToVector[O](pipe: ProxPipe[Byte, O]): P[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 !&gt;?

Type Params
O

Output type of the pipe

Value Params
pipe

Target pipe

Returns

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

def foldErrors[O, R](pipe: ProxPipe[Byte, O], init: R, fn: (R, O) => R): P[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.

Type Params
O

Output type of the pipe

R

Result type of the fold

Value Params
fn

The fold function

init

The initial value for the fold

pipe

Target pipe

Returns

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

Concrete fields

A more advanced interface for customizing the redirection per process

A more advanced interface for customizing the redirection per process