org.artofsolving.jodconverter.process
Class SigarProcessManager
java.lang.Object
org.artofsolving.jodconverter.process.SigarProcessManager
- All Implemented Interfaces:
- ProcessManager
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SigarProcessManager
public SigarProcessManager()
findPid
public long findPid(ProcessQuery query)
throws IOException
- Specified by:
findPid
in interface ProcessManager
- Returns:
- the pid or
ProcessManager.PID_UNKNOWN
- Throws:
IOException
kill
public void kill(Process process,
long pid)
throws IOException
- Specified by:
kill
in interface ProcessManager
- Throws:
IOException
Copyright © 2003-2011. All Rights Reserved.