ProcessGroupImplO
Process group with bound output stream
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ProcessLikeConfigurationtrait ProcessLikeclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- ProcessGroupConfiguration
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ProcessGroupConfiguration
- Supertypes
-
class Objecttrait Matchableclass Any
Types
Value members
Concrete methods
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 parameters
- E
-
Error output type
- OR
-
Error output redirection type
- R
-
Error output grouped redirection type
Value parameters
- groupErrorRedirectionType
-
Helper for dependent error output type
- outputRedirectionType
-
Helper for dependent error output type
- target
-
Redirection target
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Definition Classes
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.
Value parameters
- source
-
Redirection source
Attributes
- Returns
-
A new process or process group with the input redirected and the input redirection capability removed.
- Definition Classes
Applies the given mapper to each process in the group
Applies the given mapper to each process in the group
Value parameters
- f
-
process mapper
Attributes
- Returns
-
a new process group with all the processes altered by the mapper
Inherited methods
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.
Value parameters
- stream
-
Input stream
Attributes
- Returns
-
A new process or process group with the input redirected and the input redirection capability removed.
- Inherited from:
- RedirectableInput
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 parameters
- sink
-
Target sink
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from:
- RedirectableErrors
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 parameters
- O
-
Output type of the pipe. Must have a monoid instance.
Value parameters
- pipe
-
Target pipe
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from:
- RedirectableErrors
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 parameters
- O
-
Output type of the pipe
Value parameters
- pipe
-
Target pipe
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from:
- RedirectableErrors
Feed the process input from a byte stream.
Feed the process input from a byte stream.
An alias for fromStream.
Value parameters
- stream
-
Input stream
Attributes
- Returns
-
A new process or process group with the input redirected and the input redirection capability removed.
- Inherited from:
- RedirectableInput
Feed the process input from a file natively.
Feed the process input from a file natively.
An alias for fromFile.
Value parameters
- path
-
Path to the file
Attributes
- Returns
-
A new process or process group with the input redirected and the input redirection capability removed.
- Inherited from:
- RedirectableInput
Adds an environment variable to the process
Adds an environment variable to the process
Value parameters
- nameValuePair
-
A pair of name and value
Attributes
- Returns
-
a new process with the working directory set
- Inherited from:
- ProcessLikeConfiguration
Attributes
- Definition Classes
- Inherited from:
- ProcessGroupConfiguration
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 parameters
- O
-
Output type of the pipe
Value parameters
- pipe
-
Target pipe
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from:
- RedirectableErrors
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 !>#
Type parameters
- O
-
Output type of the pipe. Must have a monoid instance.
Value parameters
- pipe
-
Target pipe
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from:
- RedirectableErrors
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 !>
Value parameters
- sink
-
Target sink
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from:
- RedirectableErrors
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 !>?
Type parameters
- O
-
Output type of the pipe
Value parameters
- pipe
-
Target pipe
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from:
- RedirectableErrors
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 parameters
- O
-
Output type of the pipe
- R
-
Result type of the fold
Value parameters
- fn
-
The fold function
- init
-
The initial value for the fold
- pipe
-
Target pipe
Attributes
- Returns
-
Returns a new process group with all the error streams redirected and the error redirection capability removed.
- Inherited from:
- RedirectableErrors
Feed the process input from a file natively.
Feed the process input from a file natively.
An alias for <.
Value parameters
- path
-
Path to the file
Attributes
- Returns
-
A new process or process group with the input redirected and the input redirection capability removed.
- Inherited from:
- RedirectableInput
Feed the process input from a byte stream.
Value parameters
- flushChunks
-
Flush the process input stream after each chunk
- stream
-
Input stream
Attributes
- Returns
-
A new process or process group with the input redirected and the input redirection capability removed.
- Inherited from:
- RedirectableInput
Changes the working directory of the process
Changes the working directory of the process
Value parameters
- workingDirectory
-
the working directory
Attributes
- Returns
-
a new process with the working directory set
- Inherited from:
- ProcessLikeConfiguration
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
Attributes
- Returns
-
a new process with the working directory cleared
- Inherited from:
- ProcessLikeConfiguration
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
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
Value parameters
- runner
-
The process runner to be used
Attributes
- Returns
-
the result of the finished processes
- Inherited from:
- ProcessGroup
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).
Value parameters
- runner
-
The process runner to be used
Attributes
- Returns
-
a managed fiber representing the running processes
- Inherited from:
- ProcessGroup
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.
Type parameters
- Info
-
The runner-specific information about the started processes
Value parameters
- runner
-
The process runner to be used
Attributes
- Returns
-
interface for handling the running process group
- Inherited from:
- ProcessGroup
Removes an environment variable from the process
Removes an environment variable from the process
Usable to remove variables inherited from the parent process.
Value parameters
- name
-
Name of the environment variable
Attributes
- Returns
-
a new process with the working directory set
- Inherited from:
- ProcessLikeConfiguration
Inherited fields
A more advanced interface for customizing the redirection per process
A more advanced interface for customizing the redirection per process
Attributes
- Inherited from:
- RedirectableErrors
Attributes
- Inherited from:
- ProcessGroupConfiguration
Attributes
- Inherited from:
- ProcessGroupConfiguration
Attributes
- Inherited from:
- ProcessGroupConfiguration