Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
agent/core/src/main/java/org/jolokia/detector/ActiveMQDetector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters