final class PpidChecker
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
PpidChecker.ProcessInfoConsumer
Reads standard output from
Process . |
Modifier and Type | Field and Description |
---|---|
private java.util.Queue<java.lang.Process> |
destroyableCommands |
private long |
pluginPid |
private ProcessInfo |
pluginProcessInfo |
private static java.lang.String |
RELATIVE_PATH_TO_WMIC |
private boolean |
stopped |
private static java.lang.String |
SYSTEM_PATH_TO_WMIC |
(package private) static java.util.regex.Pattern |
UNIX_CMD_OUT_PATTERN
The etime is in the form of [[dd-]hh:]mm:ss on Unix like systems.
|
private static java.lang.String |
WINDOWS_SYSTEM_ROOT_ENV |
private static java.lang.String |
WMIC_CREATION_DATE |
Constructor and Description |
---|
PpidChecker(long pluginPid) |
Modifier and Type | Method and Description |
---|---|
private static boolean |
canExecuteLocalUnixPs() |
private static boolean |
canExecuteStandardUnixPs() |
(package private) static boolean |
canExecuteUnixPs() |
(package private) boolean |
canUse() |
private static void |
checkValid(java.util.Scanner scanner) |
(package private) void |
destroyActiveCommands() |
(package private) static long |
fromDays(java.util.regex.Matcher matcher) |
(package private) static long |
fromHours(java.util.regex.Matcher matcher) |
(package private) static long |
fromMinutes(java.util.regex.Matcher matcher) |
(package private) static long |
fromSeconds(java.util.regex.Matcher matcher) |
private static boolean |
hasWmicStandardSystemPath() |
(package private) boolean |
isProcessAlive()
This method can be called only after
canUse() has returned true . |
private boolean |
isStopped() |
(package private) ProcessInfo |
unix() |
(package private) static java.lang.String |
unixPathToPS() |
(package private) ProcessInfo |
windows() |
private static final java.lang.String WMIC_CREATION_DATE
private static final java.lang.String WINDOWS_SYSTEM_ROOT_ENV
private static final java.lang.String RELATIVE_PATH_TO_WMIC
private static final java.lang.String SYSTEM_PATH_TO_WMIC
private final java.util.Queue<java.lang.Process> destroyableCommands
static final java.util.regex.Pattern UNIX_CMD_OUT_PATTERN
private final long pluginPid
private volatile ProcessInfo pluginProcessInfo
private volatile boolean stopped
boolean canUse()
boolean isProcessAlive()
canUse()
has returned true
.ProcessInfo unix()
ProcessInfo windows()
void destroyActiveCommands()
private boolean isStopped()
static java.lang.String unixPathToPS()
static boolean canExecuteUnixPs()
private static boolean canExecuteLocalUnixPs()
private static boolean canExecuteStandardUnixPs()
private static boolean hasWmicStandardSystemPath()
static long fromDays(java.util.regex.Matcher matcher)
static long fromHours(java.util.regex.Matcher matcher)
static long fromMinutes(java.util.regex.Matcher matcher)
static long fromSeconds(java.util.regex.Matcher matcher)
private static void checkValid(java.util.Scanner scanner) throws java.io.IOException
java.io.IOException