add MultiProcCpu wrappers

This commit is contained in:
Doug MacEachern 2004-11-10 23:24:14 +00:00
parent 76e26b5d88
commit 629ac5d4f9
3 changed files with 12 additions and 0 deletions

View File

@ -318,6 +318,10 @@ public class Sigar implements SigarProxy {
return getProcCpu(convertPid(pid));
}
public MultiProcCpu getMultiProcCpu(String query) throws SigarException {
return MultiProcCpu.get(this, query);
}
/**
* Get process credential info.
* @param pid The process id.

View File

@ -47,6 +47,8 @@ public interface SigarProxy {
public ProcCpu getProcCpu(String pid) throws SigarException;
public MultiProcCpu getMultiProcCpu(String query) throws SigarException;
public ProcCred getProcCred(long pid) throws SigarException;
public ProcCred getProcCred(String pid) throws SigarException;

View File

@ -125,6 +125,12 @@ public class SynchronizedSigar implements SigarProxy {
return this.sigar.getProcCpu(pid);
}
public synchronized MultiProcCpu getMultiProcCpu(String query)
throws SigarException
{
return this.sigar.getMultiProcCpu(query);
}
public synchronized ProcCred getProcCred(long pid)
throws SigarException
{