public class LinuxProcessManager extends Object implements ProcessManager
ProcessManager implementation for Linux.
Should Work on Solaris too, except that the command line string
returned by ps there is limited to 80 characters and this affectsPID_NOT_FOUND, PID_UNKNOWN| Constructor and Description |
|---|
LinuxProcessManager() |
| Modifier and Type | Method and Description |
|---|---|
long |
findPid(ProcessQuery query) |
void |
kill(Process process,
long pid) |
protected String[] |
psCommand() |
void |
setRunAsArgs(String... runAsArgs) |
public void setRunAsArgs(String... runAsArgs)
protected String[] psCommand()
public long findPid(ProcessQuery query) throws IOException
findPid in interface ProcessManagerquery - the objectProcessManager.PID_NOT_FOUND if not,
or ProcessManager.PID_UNKNOWN if this implementation is unable to find outIOException - exceptionpublic void kill(Process process, long pid) throws IOException
kill in interface ProcessManagerIOExceptionCopyright © 2019. All rights reserved.