CustomizedPerProcess

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

Advanced version of the RedirectableErrors interface enabling per-process customizations.

Type Params
P

Self type without RedirectableErrors

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]

Concrete methods

def appendErrorsToFile(pathFn: Process[_, _] => Path): P[Unit]

Redirects the error outputs to one file per process in append mode

Redirects the error outputs to one file per process in append mode

The process error output type will be Unit.

Value Params
pathFn

A function to get a file path for each process in the group

Returns

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

def drainErrors[O](pipeFn: Process[_, _] => 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
pipeFn

A function to get a pipe for each process in the group

Returns

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

def errorsToFile(pathFn: Process[_, _] => Path): P[Unit]

Redirects the error outputs to one file per process

Redirects the error outputs to one file per process

The process error output type will be Unit.

Value Params
pathFn

A function to get a file path for each process in the group

Returns

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

def errorsToFoldMonoid[O : ProxMonoid](pipeFn: Process[_, _] => 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.

Type Params
O

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

Value Params
pipeFn

A function to get a pipe for each process in the group

Returns

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

def errorsToSink(sinkFn: Process[_, _] => 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.

Value Params
sinkFn

Function to get a sink for each process in the group

Returns

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

def errorsToVector[O](pipeFn: Process[_, _] => 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.

Type Params
O

Output type of the pipe

Value Params
pipeFn

A function to get a pipe for each process in the group

Returns

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

def foldErrors[O, R](pipeFn: Process[_, _] => 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

pipeFn

A function to get a pipe for each process in the group

Returns

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