add MultiProcCpu wrappers
This commit is contained in:
parent
76e26b5d88
commit
629ac5d4f9
|
@ -318,6 +318,10 @@ public class Sigar implements SigarProxy {
|
||||||
return getProcCpu(convertPid(pid));
|
return getProcCpu(convertPid(pid));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MultiProcCpu getMultiProcCpu(String query) throws SigarException {
|
||||||
|
return MultiProcCpu.get(this, query);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get process credential info.
|
* Get process credential info.
|
||||||
* @param pid The process id.
|
* @param pid The process id.
|
||||||
|
|
|
@ -47,6 +47,8 @@ public interface SigarProxy {
|
||||||
|
|
||||||
public ProcCpu getProcCpu(String pid) throws SigarException;
|
public ProcCpu getProcCpu(String pid) throws SigarException;
|
||||||
|
|
||||||
|
public MultiProcCpu getMultiProcCpu(String query) throws SigarException;
|
||||||
|
|
||||||
public ProcCred getProcCred(long pid) throws SigarException;
|
public ProcCred getProcCred(long pid) throws SigarException;
|
||||||
|
|
||||||
public ProcCred getProcCred(String pid) throws SigarException;
|
public ProcCred getProcCred(String pid) throws SigarException;
|
||||||
|
|
|
@ -125,6 +125,12 @@ public class SynchronizedSigar implements SigarProxy {
|
||||||
return this.sigar.getProcCpu(pid);
|
return this.sigar.getProcCpu(pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public synchronized MultiProcCpu getMultiProcCpu(String query)
|
||||||
|
throws SigarException
|
||||||
|
{
|
||||||
|
return this.sigar.getMultiProcCpu(query);
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized ProcCred getProcCred(long pid)
|
public synchronized ProcCred getProcCred(long pid)
|
||||||
throws SigarException
|
throws SigarException
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue