SubProcess

replpp.shaded.os.SubProcess
See theSubProcess companion object
class SubProcess(val wrapped: Process, val inputPumperThread: Option[Thread], val outputPumperThread: Option[Thread], val errorPumperThread: Option[Thread]) extends AutoCloseable

Represents a spawn subprocess that has started and may or may not have completed.

Attributes

Companion
object
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close(): Unit

Alias for destroy

Alias for destroy

Attributes

def destroy(): Unit

Attempt to destroy the subprocess (gently), via the underlying JVM APIs

Attempt to destroy the subprocess (gently), via the underlying JVM APIs

Attributes

def destroyForcibly(): Unit

Force-destroys the subprocess, via the underlying JVM APIs

Force-destroys the subprocess, via the underlying JVM APIs

Attributes

def exitCode(): Int

The subprocess' exit code. Conventionally, 0 exit code represents a successful termination, and non-zero exit code indicates a failure.

The subprocess' exit code. Conventionally, 0 exit code represents a successful termination, and non-zero exit code indicates a failure.

Throws an exception if the subprocess has not terminated

Attributes

def isAlive(): Boolean

Returns true if the subprocess is still running and has not terminated

Returns true if the subprocess is still running and has not terminated

Attributes

def join(timeout: Long): Boolean

Wait up to millis for the subprocess to terminate and all stdout and stderr from the subprocess to be handled. By default waits indefinitely; if a time limit is given, explicitly destroys the subprocess if it has not completed by the time the timeout has occurred

Wait up to millis for the subprocess to terminate and all stdout and stderr from the subprocess to be handled. By default waits indefinitely; if a time limit is given, explicitly destroys the subprocess if it has not completed by the time the timeout has occurred

Attributes

def waitFor(timeout: Long): Boolean

Wait up to millis for the subprocess to terminate, by default waits indefinitely. Returns true if the subprocess has terminated by the time this method returns.

Wait up to millis for the subprocess to terminate, by default waits indefinitely. Returns true if the subprocess has terminated by the time this method returns.

Attributes

Concrete fields

val errorPumperThread: Option[Thread]
val inputPumperThread: Option[Thread]
val outputPumperThread: Option[Thread]
val wrapped: Process