StopCheckExecuteWatchdog

public class StopCheckExecuteWatchdog extends ExecuteWatchdog

An extension of ExecuteWatchdog that tracks whether the watchdog has been explicitly stopped.

This class adds the ability to query the stopped state via isStopped, since the standard ExecuteWatchdog does not expose this information.

Used internally by ManagedProcess to determine whether a process has been externally terminated or has naturally completed.

Author

Michael Vorburger

Constructors

Link copied to clipboard
public void StopCheckExecuteWatchdog(long timeoutMillis)
Creates a new watchdog with a given timeout.

Properties

Link copied to clipboard
public final static long INFINITE_TIMEOUT
Link copied to clipboard
public final static Duration INFINITE_TIMEOUT_DURATION

Functions

Link copied to clipboard
public static ExecuteWatchdog.Builder builder()
Link copied to clipboard
public synchronized void checkException()
Link copied to clipboard
public synchronized void destroyProcess()
Link copied to clipboard
public synchronized void failedToStart(Exception e)
Link copied to clipboard
public boolean isStopped()
Checks whether this watchdog has been stopped.
Link copied to clipboard
public synchronized boolean isWatching()
Link copied to clipboard
public synchronized boolean killedProcess()
Link copied to clipboard
public synchronized void start(Process processToMonitor)
Link copied to clipboard
public synchronized void stop()
Link copied to clipboard
public synchronized void timeoutOccured(Watchdog w)