Managed Process State
Read-only view and lifecycle controls for a managed external process.
Provides operations to start, wait, destroy, and query state, plus helpers for reading recent console output useful for diagnostics.
Inheritors
Functions
Link copied to clipboard
Returns the recent console output captured from the process (stdout and stderr).
Link copied to clipboard
Returns a formatted string with the last N lines of console output for diagnostics.
Link copied to clipboard
Returns a descriptive name of the process suitable for logs (typically includes the command and, if available, the working directory).
Link copied to clipboard
Internal callback used to signal that the process has halted (success or failure).
Link copied to clipboard
public abstract boolean startAndWaitForConsoleMessageMaxMs(String messageInConsole, long maxWaitUntilReturning)
Starts the process and waits until a specific message appears in the process console output (stdout or stderr), or the timeout elapses.
Link copied to clipboard
Blocks until the process terminates and returns its exit value.
Link copied to clipboard
Blocks until the process terminates, or until the timeout elapses.
Link copied to clipboard
Waits up to the given timeout for the process to terminate; if still running after the timeout, the process is destroyed.
Link copied to clipboard
Indicates whether the watchdog forcibly killed the process.