public static class UnixProcessChecker.Factory extends java.lang.Object implements ProcessChecker.Factory
ProcessChecker for UNIX systems.| Constructor and Description |
|---|
Factory(org.apache.commons.exec.Executor executor,
boolean checkWithSudo)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ProcessChecker |
get(int pid,
java.time.Instant timeout)
Get a new process checker to check on the given PID.
|
public Factory(org.apache.commons.exec.Executor executor,
boolean checkWithSudo)
executor - The executor used by process checkerscheckWithSudo - Whether the check requires sudopublic ProcessChecker get(int pid, java.time.Instant timeout)
get in interface ProcessChecker.Factorypid - the process id to check ontimeout - the moment in time after which the check should produce a GenieTimeoutExceptionProcessChecker