From 2d0943c5a630a0db83287c6b8e9b21795418f9fa Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 21 Apr 2007 22:35:27 +0000 Subject: [PATCH] deprecate findSingleProcess --- .../org/hyperic/sigar/ptql/ProcessFinder.java | 40 ++++--------------- 1 file changed, 7 insertions(+), 33 deletions(-) diff --git a/bindings/java/src/org/hyperic/sigar/ptql/ProcessFinder.java b/bindings/java/src/org/hyperic/sigar/ptql/ProcessFinder.java index c547c7a0..f83cf427 100644 --- a/bindings/java/src/org/hyperic/sigar/ptql/ProcessFinder.java +++ b/bindings/java/src/org/hyperic/sigar/ptql/ProcessFinder.java @@ -36,6 +36,9 @@ public class ProcessFinder { this.proxy.getPid(); } + /** + * @deprecated + */ public long findSingleProcess(String query) throws SigarException, SigarNotImplementedException { @@ -48,6 +51,9 @@ public class ProcessFinder { } } + /** + * @deprecated + */ public long findSingleProcess(ProcessQuery query) throws SigarException, SigarNotImplementedException, MalformedQueryException { @@ -56,39 +62,7 @@ public class ProcessFinder { return ((SigarProcessQuery)query).findProcess(this.proxy); } - int i, matches = 0; - - long[] pids = this.proxy.getProcList(); - long pid=-1; - - for (i=0; i