diff --git a/bindings/java/src/net/hyperic/sigar/MultiProcMem.java b/bindings/java/src/net/hyperic/sigar/MultiProcMem.java new file mode 100644 index 00000000..1ff8c69f --- /dev/null +++ b/bindings/java/src/net/hyperic/sigar/MultiProcMem.java @@ -0,0 +1,25 @@ +package net.hyperic.sigar; + +import net.hyperic.sigar.ptql.ProcessFinder; + +public class MultiProcMem extends ProcMem { + + static ProcMem get(Sigar sigar, String query) + throws SigarException { + + ProcMem mem = new ProcMem(); + + long[] pids = ProcessFinder.find(sigar, query); + + for (int i=0; i