need to declare getServicePid to throw SigarException

This commit is contained in:
Doug MacEachern 2004-08-14 22:38:57 +00:00
parent cfbbf3dfc7
commit 96ac948aca
3 changed files with 3 additions and 2 deletions

View File

@ -131,7 +131,7 @@ public class Sigar implements SigarProxy {
* This method is implemented on Windows only as a helper * This method is implemented on Windows only as a helper
* for PTQL. * for PTQL.
*/ */
public native long getServicePid(String name); public native long getServicePid(String name) throws SigarException;
/** /**
* Send a signal to a process. * Send a signal to a process.

View File

@ -13,7 +13,7 @@ public interface SigarProxy {
public long getPid(); public long getPid();
public long getServicePid(String name); public long getServicePid(String name) throws SigarException;
public Mem getMem() throws SigarException; public Mem getMem() throws SigarException;

View File

@ -24,6 +24,7 @@ public class SynchronizedSigar implements SigarProxy {
} }
public synchronized long getServicePid(String name) public synchronized long getServicePid(String name)
throws SigarException
{ {
return this.sigar.getServicePid(name); return this.sigar.getServicePid(name);
} }