Class/Object

os

SubProcess

Related Docs: object SubProcess | package os

Permalink

class SubProcess extends AutoCloseable

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

Linear Supertypes
AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SubProcess
  2. AutoCloseable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SubProcess(wrapped: Process, inputPumperThread: Option[Thread], outputPumperThread: Option[Thread], errorPumperThread: Option[Thread])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @throws( ... )
  6. def close(): Unit

    Permalink

    Alias for destroy

    Alias for destroy

    Definition Classes
    SubProcess → AutoCloseable
  7. def destroy(): Unit

    Permalink

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

  8. def destroyForcibly(): Unit

    Permalink

    Force-destroys the subprocess, via the underlying JVM APIs

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. val errorPumperThread: Option[Thread]

    Permalink
  12. def exitCode(): Int

    Permalink

    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

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate()
  15. val inputPumperThread: Option[Thread]

    Permalink
  16. def isAlive(): Boolean

    Permalink

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

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def join(timeout: Long = 1): Boolean

    Permalink

    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

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate()
  22. val outputPumperThread: Option[Thread]

    Permalink
  23. val stderr: OutputStream

    Permalink
  24. val stdin: InputStream

    Permalink
  25. val stdout: OutputStream

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def waitFor(timeout: Long = 1): Boolean

    Permalink

    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. Returns true if the subprocess has terminated by the time this method returns.

  32. val wrapped: Process

    Permalink

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped