ProcessLike
Parent type for single processes and process pipelines.
Attributes
- Graph
-
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
- Known subtypes
-
class ProcessPipelineclass SubProcess
Members list
Value members
Abstract methods
Attempt to destroy the ProcessLike (gently), via the underlying JVM APIs
Force-destroys the ProcessLike, via the underlying JVM APIs
The exit code of this ProcessLike. Conventionally, 0 exit code represents a successful termination, and non-zero exit code indicates a failure.
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
Attributes
Returns true
if the ProcessLike is still running and has not terminated
Wait up to millis
for the ProcessLike to terminate, by default waits indefinitely. Returns true
if the ProcessLike has terminated by the time this method returns.
Wait up to millis
for the ProcessLike to terminate, by default waits indefinitely. Returns true
if the ProcessLike has terminated by the time this method returns.
Attributes
Concrete methods
Wait up to millis
for 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.
Wait up to millis
for 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.
By default, a process is destroyed by sending a SIGTERM
signal, which allows an opportunity for it to clean up any resources it was using. If the process is unresponsive to this, a SIGKILL
signal is sent timeoutGracePeriod
milliseconds later. If timeoutGracePeriod
is 0
, then there is no SIGTERM
; if it is -1
, there is no SIGKILL
sent.
Attributes
- Note
-
the issuing of
SIGTERM
instead ofSIGKILL
is implementation dependent on your JVM version. Pre-Java 9, noSIGTERM
may be issued. Check the documentation for your JDK'sProcess.destroy
.