need to declare getServicePid to throw SigarException
This commit is contained in:
parent
cfbbf3dfc7
commit
96ac948aca
|
@ -131,7 +131,7 @@ public class Sigar implements SigarProxy {
|
|||
* This method is implemented on Windows only as a helper
|
||||
* for PTQL.
|
||||
*/
|
||||
public native long getServicePid(String name);
|
||||
public native long getServicePid(String name) throws SigarException;
|
||||
|
||||
/**
|
||||
* Send a signal to a process.
|
||||
|
|
|
@ -13,7 +13,7 @@ public interface SigarProxy {
|
|||
|
||||
public long getPid();
|
||||
|
||||
public long getServicePid(String name);
|
||||
public long getServicePid(String name) throws SigarException;
|
||||
|
||||
public Mem getMem() throws SigarException;
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ public class SynchronizedSigar implements SigarProxy {
|
|||
}
|
||||
|
||||
public synchronized long getServicePid(String name)
|
||||
throws SigarException
|
||||
{
|
||||
return this.sigar.getServicePid(name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue