case class ProcessImplOE[F[_], O, 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[O], errorRedirection: OutputRedirection[F], runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[E], inputRedirection: InputRedirection[F])(implicit concurrent: Concurrent[F]) extends Process[F, O, E] with RedirectableInput[F, ProcessImplIOE[F, O, E]] with ProcessConfiguration[F, ProcessImplOE[F, O, E]] with Product with Serializable
Process with bound output and error streams
- Alphabetic
- By Inheritance
- ProcessImplOE
- Serializable
- Serializable
- Product
- Equals
- ProcessConfiguration
- RedirectableInput
- Process
- ProcessLike
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ProcessImplOE(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[O], errorRedirection: OutputRedirection[F], runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[E], inputRedirection: InputRedirection[F])(implicit concurrent: Concurrent[F])
Value Members
-
def
!<(stream: Stream[F, Byte]): ProcessImplIOE[F, O, E]
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.
- stream
Input stream
- returns
A new process or process group with the input redirected and the input redirection capability removed.
- Definition Classes
- RedirectableInput
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
<(stream: Stream[F, Byte]): ProcessImplIOE[F, O, E]
Feed the process input from a byte stream.
Feed the process input from a byte stream.
An alias for fromStream.
- stream
Input stream
- returns
A new process or process group with the input redirected and the input redirection capability removed.
- Definition Classes
- RedirectableInput
-
def
<(path: Path): ProcessImplIOE[F, O, E]
Feed the process input from a file natively.
Feed the process input from a file natively.
An alias for fromFile.
- path
Path to the file
- returns
A new process or process group with the input redirected and the input redirection capability removed.
- Definition Classes
- RedirectableInput
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
arguments: List[String]
- Definition Classes
- ProcessImplOE → Process
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
command: String
- Definition Classes
- ProcessImplOE → Process
-
implicit
val
concurrent: Concurrent[F]
- Definition Classes
- ProcessImplOE → Process
-
def
connectInput(source: InputRedirection[F]): ProcessImplIOE[F, O, E]
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.
- source
Redirection source
- returns
A new process or process group with the input redirected and the input redirection capability removed.
- Definition Classes
- ProcessImplOE → RedirectableInput
-
val
environmentVariables: Map[String, String]
- Definition Classes
- ProcessImplOE → Process
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
errorRedirection: OutputRedirection[F]
- Definition Classes
- ProcessImplOE → Process
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromFile(path: Path): ProcessImplIOE[F, O, E]
Feed the process input from a file natively.
Feed the process input from a file natively.
An alias for <.
- path
Path to the file
- returns
A new process or process group with the input redirected and the input redirection capability removed.
- Definition Classes
- RedirectableInput
-
def
fromStream(stream: Stream[F, Byte], flushChunks: Boolean): ProcessImplIOE[F, O, E]
Feed the process input from a byte stream.
- stream
Input stream
- flushChunks
Flush the process input stream after each chunk
- returns
A new process or process group with the input redirected and the input redirection capability removed.
- Definition Classes
- RedirectableInput
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
in(workingDirectory: Path): ProcessImplOE[F, O, 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
-
val
inputRedirection: InputRedirection[F]
- Definition Classes
- ProcessImplOE → Process
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
outputRedirection: OutputRedirection[F]
- Definition Classes
- ProcessImplOE → Process
-
val
removedEnvironmentVariables: Set[String]
- Definition Classes
- ProcessImplOE → Process
-
def
run(blocker: Blocker)(implicit runner: ProcessRunner[F]): F[ProcessResult[O, 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
-
val
runErrorStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[E]
- Definition Classes
- ProcessImplOE → Process
-
val
runOutputStream: (java.io.InputStream, Blocker, ContextShift[F]) ⇒ F[O]
- Definition Classes
- ProcessImplOE → Process
-
def
selfCopy(command: String, arguments: List[String], workingDirectory: Option[Path], environmentVariables: Map[String, String], removedEnvironmentVariables: Set[String]): ProcessImplOE[F, O, E]
- Attributes
- protected
- Definition Classes
- ProcessImplOE → ProcessConfiguration
-
def
start(blocker: Blocker)(implicit runner: ProcessRunner[F]): Resource[F, Fiber[F, ProcessResult[O, 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
-
def
startProcess(blocker: Blocker)(implicit runner: ProcessRunner[F]): F[RunningProcess[F, O, 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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
with(nameValuePair: (String, String)): ProcessImplOE[F, O, 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
-
def
withArguments(newArguments: List[String]): ProcessImplOE[F, O, E]
Replaces the arguments
Replaces the arguments
- newArguments
new list of arguments
- returns
returns a new process specification
- Definition Classes
- ProcessConfiguration
-
def
withCommand(newCommand: String): ProcessImplOE[F, O, 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
-
def
without(name: String): ProcessImplOE[F, O, 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
-
val
workingDirectory: Option[Path]
- Definition Classes
- ProcessImplOE → Process