sealed trait ProcessLike extends AutoCloseable
Parent type for single processes and process pipelines.
- Alphabetic
- By Inheritance
- ProcessLike
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def close(): Unit
Alias for destroy, implemented for java.lang.AutoCloseable
Alias for destroy, implemented for java.lang.AutoCloseable
- Definition Classes
- ProcessLike → AutoCloseable
- abstract def destroy(): Unit
Attempt to destroy the ProcessLike (gently), via the underlying JVM APIs
- abstract def destroyForcibly(): Unit
Force-destroys the ProcessLike, via the underlying JVM APIs
- abstract def exitCode(): Int
The exit code of this ProcessLike.
The exit code of this ProcessLike. 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
- abstract def isAlive(): Boolean
Returns
trueif the ProcessLike is still running and has not terminated - abstract def join(timeout: Long = -1): Boolean
Wait up to
millisfor the ProcessLike to terminate and all stdout and stderr from the subprocess to be handled.Wait up to
millisfor the ProcessLike 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 ProcessLike if it has not completed by the time the timeout has occurred - abstract def waitFor(timeout: Long = -1): Boolean
Wait up to
millisfor the ProcessLike to terminate, by default waits indefinitely.Wait up to
millisfor the ProcessLike to terminate, by default waits indefinitely. Returnstrueif the ProcessLike has terminated by the time this method returns.
Concrete 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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- 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()
- 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()