public class SigarProcessManager extends Object implements ProcessManager
ProcessManager implementation that uses the SIGAR library.
Requires the sigar.jar in the classpath and the appropriate system-specific native library (e.g. libsigar-x86-linux.so on Linux x86) available in the java.library.path.
See the SIGAR site for documentation and downloads.
PID_NOT_FOUND, PID_UNKNOWN| Constructor and Description |
|---|
SigarProcessManager() |
public long findPid(ProcessQuery query) throws IOException
findPid in interface ProcessManagerProcessManager.PID_NOT_FOUND if not,
or ProcessManager.PID_UNKNOWN if this implementation is unable to find outIOExceptionpublic void kill(Process process, long pid) throws IOException
kill in interface ProcessManagerIOExceptionCopyright © 2003–2015. All rights reserved.