class SubProcess extends AutoCloseable
Represents a spawn subprocess that has started and may or may not have completed.
- Alphabetic
- By Inheritance
- SubProcess
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
Alias for destroy
Alias for destroy
- Definition Classes
- SubProcess → AutoCloseable
- def destroy(): Unit
Attempt to destroy the subprocess (gently), via the underlying JVM APIs
- def destroyForcibly(): Unit
Force-destroys the subprocess, via the underlying JVM APIs
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val errorPumperThread: Option[Thread]
- def exitCode(): Int
The subprocess' exit code.
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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val inputPumperThread: Option[Thread]
- def isAlive(): Boolean
Returns
true
if the subprocess is still running and has not terminated - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def join(timeout: Long = -1): Boolean
Wait up to
millis
for the subprocess to terminate and all stdout and stderr from the subprocess to be handled.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 - 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 outputPumperThread: Option[Thread]
- val stderr: OutputStream
- val stdin: InputStream
- val stdout: OutputStream
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def waitFor(timeout: Long = -1): Boolean
Wait up to
millis
for the subprocess to terminate, by default waits indefinitely.Wait up to
millis
for the subprocess to terminate, by default waits indefinitely. Returnstrue
if the subprocess has terminated by the time this method returns. - val wrapped: Process