From: <do...@hy...> - 2007-06-04 23:59:23
|
Author: dougm Date: 2007-06-04 16:59:20 -0700 (Mon, 04 Jun 2007) New Revision: 4649 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=4649 Modified: trunk/plugins/websphere/src/org/hyperic/hq/plugin/websphere/WebsphereServerCollector.java Log: use super.name Modified: trunk/plugins/websphere/src/org/hyperic/hq/plugin/websphere/WebsphereServerCollector.java =================================================================== --- trunk/plugins/websphere/src/org/hyperic/hq/plugin/websphere/WebsphereServerCollector.java 2007-06-04 23:59:02 UTC (rev 4648) +++ trunk/plugins/websphere/src/org/hyperic/hq/plugin/websphere/WebsphereServerCollector.java 2007-06-04 23:59:20 UTC (rev 4649) @@ -2,7 +2,6 @@ import java.util.Map; -import javax.management.ObjectName; import javax.management.j2ee.statistics.Stats; import org.hyperic.hq.product.PluginException; @@ -11,18 +10,16 @@ public class WebsphereServerCollector extends WebsphereCollector { - private ObjectName jvm; - protected void init(AdminClient mServer) throws PluginException { super.init(mServer); - this.jvm = + this.name = newObjectNamePattern("name=JVM," + "type=JVM," + "j2eeType=JVM," + getServerAttributes()); - this.jvm = resolve(mServer, this.jvm); + this.name = resolve(mServer, this.name); } public void collect() { @@ -36,7 +33,7 @@ Map values = getResult().getValues(); Stats jvmStats = - (Stats)getStats(mServer, this.jvm); + (Stats)getStats(mServer, this.name); if (jvmStats != null) { double total = getStatCount(jvmStats, "HeapSize"); |