geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r813236 - /geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/jmx/snapshot/SnapshotThread.java
Date Thu, 10 Sep 2009 05:39:42 GMT
Author: genspring
Date: Thu Sep 10 05:39:41 2009
New Revision: 813236

URL: http://svn.apache.org/viewvc?rev=813236&view=rev
Log:
GERONIMO-4859 Default JMX monitoring MBeans list should include JVM MBean.

Modified:
    geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/jmx/snapshot/SnapshotThread.java

Modified: geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/jmx/snapshot/SnapshotThread.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/jmx/snapshot/SnapshotThread.java?rev=813236&r1=813235&r2=813236&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/jmx/snapshot/SnapshotThread.java
(original)
+++ geronimo/server/trunk/plugins/monitoring/agent-jmx/src/main/java/org/apache/geronimo/monitoring/jmx/snapshot/SnapshotThread.java
Thu Sep 10 05:39:41 2009
@@ -122,8 +122,8 @@
         ArrayList<String> retval = new ArrayList<String>();
         for (Iterator it = mbeans.iterator(); it.hasNext();) {
             String name = (String) it.next();
-            if ((name.contains("Connector") || name.contains("Container"))
-                    && (name.contains("Jetty") || name.contains("Tomcat"))) {
+            if (((name.contains("Connector") || name.contains("Container"))
+                    && (name.contains("Jetty") || name.contains("Tomcat"))|| name.contains("JVM")))
{
                 // this is a connector, so add to the list
                 retval.add(name);
                 // update the snapshot-config.xml to include these



Mime
View raw message