org.artofsolving.jodconverter.process
Class SigarProcessManager

java.lang.Object
  extended by 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.


Field Summary
 
Fields inherited from interface org.artofsolving.jodconverter.process.ProcessManager
PID_UNKNOWN
 
Constructor Summary
SigarProcessManager()
           
 
Method Summary
 long findPid(ProcessQuery query)
           
 void kill(Process process, long pid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SigarProcessManager

public SigarProcessManager()
Method Detail

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.