From 08d212ecf93f081a71fcee3790781c9dd7076b83 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 4 Feb 2007 17:47:05 +0000 Subject: [PATCH] add kill(String,int) --- bindings/java/src/org/hyperic/sigar/Sigar.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bindings/java/src/org/hyperic/sigar/Sigar.java b/bindings/java/src/org/hyperic/sigar/Sigar.java index 11dcc9fd..a803c8e2 100644 --- a/bindings/java/src/org/hyperic/sigar/Sigar.java +++ b/bindings/java/src/org/hyperic/sigar/Sigar.java @@ -241,6 +241,17 @@ public class Sigar implements SigarProxy { */ public native void kill(long pid, int signum) throws SigarException; + /** + * Send a signal to a process. + * + * @param pid The process id or query. + * @param signum The signal number. + * @exception SigarException on failure. + */ + public void kill(String pid, int signum) throws SigarException { + kill(convertPid(pid), signum); + } + /** * Get system memory info. * @exception SigarException on failure.