modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/ApplicationServerComponent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 92c5ebafd2c1d2c0310d668ce6ef75a8cbe96566 Author: Ian Springer ian.springer@redhat.com Date: Fri Jul 30 13:53:07 2010 -0400
fix logic error in my previous commit
diff --git a/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/ApplicationServerComponent.java b/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/ApplicationServerComponent.java index 0e3ea48..6949ff7 100644 --- a/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/ApplicationServerComponent.java +++ b/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/ApplicationServerComponent.java @@ -1,6 +1,6 @@ /* * Jopr Management Platform - * Copyright (C) 2005-2009 Red Hat, Inc. + * Copyright (C) 2005-2010 Red Hat, Inc. * All rights reserved. * * This program is free software; you can redistribute it and/or modify @@ -237,6 +237,7 @@ public class ApplicationServerComponent implements ResourceComponent, ProfileSer boolean foundProperty = false; try { value = getMetric(managementView, metricName); + VERIFIED_METRIC_NAMES.put(requestName, metricName); foundProperty = true; } catch (ComponentNotFoundException e) { log.trace(e); @@ -249,6 +250,7 @@ public class ApplicationServerComponent implements ResourceComponent, ProfileSer if (metricName != null) { try { value = getMetric(managementView, metricName); + VERIFIED_METRIC_NAMES.put(requestName, metricName); foundProperty = true; } catch (ComponentNotFoundException e) { log.trace(e); @@ -268,7 +270,6 @@ public class ApplicationServerComponent implements ResourceComponent, ProfileSer + propertyNames); }
- VERIFIED_METRIC_NAMES.put(requestName, metricName); if (value == null) { log.debug("Null value returned for metric '" + metricName + "'."); continue;