final case class Process(process: java.lang.Process) extends Product with Serializable
- Alphabetic
- By Inheritance
- Process
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Process(process: java.lang.Process)
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
execute[T](f: (java.lang.Process) ⇒ T): ZIO[Any, CommandError, T]
Access the underlying Java Process wrapped in a blocking ZIO.
-
def
exitCode: ZIO[Any, CommandError, ExitCode]
Return the exit code of this process.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
isAlive: UIO[Boolean]
Tests whether the process is still alive (not terminated or completed).
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
kill: ZIO[Any, CommandError, Unit]
Kills the process and will wait until completed.
Kills the process and will wait until completed. Equivalent to SIGTERM on Unix platforms.
-
def
killForcibly: ZIO[Any, CommandError, Unit]
Kills the process and will wait until completed.
Kills the process and will wait until completed. Equivalent to SIGKILL on Unix platforms.
-
def
killTree: ZIO[Any, CommandError, Unit]
Kills the entire process tree and will wait until completed.
Kills the entire process tree and will wait until completed. Equivalent to SIGTERM on Unix platforms.
Note: This method requires JDK 9+
-
def
killTreeForcibly: ZIO[Any, CommandError, Unit]
Kills the entire process tree and will wait until completed.
Kills the entire process tree and will wait until completed. Equivalent to SIGKILL on Unix platforms.
Note: This method requires JDK 9+
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
stderr: ProcessStream
Access the standard error stream.
-
val
stdout: ProcessStream
Access the standard output stream.
-
def
successfulExitCode: ZIO[Any, CommandError, ExitCode]
Return the exit code of this process if it is zero.
Return the exit code of this process if it is zero. If non-zero, it will fail with
CommandError.NonZeroErrorCode. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated