Skip to content

Commit

Permalink
Added ActiveMQ Detector (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuss committed Mar 27, 2014
1 parent 0a94d73 commit 1b2063c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
@@ -0,0 +1,20 @@
package org.jolokia.detector;

import org.jolokia.backend.executor.MBeanServerExecutor;

/**
* Detector for ActiveMQ
*
* @author roland
* @since 27.03.14
*/
public class ActiveMQDetector extends AbstractServerDetector {

public ServerHandle detect(MBeanServerExecutor pMBeanServerExecutor) {
String version = getSingleStringAttribute(pMBeanServerExecutor, "org.apache.activemq:type=Broker,*", "BrokerVersion");
if (version == null) {
return null;
}
return new ServerHandle("Apache","activemq",version, null);
}
}
Expand Up @@ -36,9 +36,6 @@ public interface ServerDetector {
* Detect the server. A {@link ServerHandle} descriptor is returned
* in case of a successful detection, <code>null</code> otherwise.
*
*
*
*
* @param pMBeanServerExecutor a set of MBeanServers which can be used for detecting server informations
* @return the server descriptor or <code>null</code> it this implementation cant detect 'its' server.
*/
Expand Down
1 change: 1 addition & 0 deletions agent/core/src/main/resources/META-INF/detectors-default
@@ -1,5 +1,6 @@
org.jolokia.detector.GeronimoDetector
org.jolokia.detector.JBossDetector
org.jolokia.detector.ActiveMQDetector
org.jolokia.detector.TomcatDetector
org.jolokia.detector.JettyDetector
org.jolokia.detector.GlassfishDetector
Expand Down

0 comments on commit 1b2063c

Please sign in to comment.