Menu

#7 [Enhancement] Add JMX support

general
open
nobody
general (11)
5
2005-08-06
2005-08-06
No

Here is a contribution to add JMX support to jamonapi
(enable/disable jamon & read reports).

Here are the main modifications :

* add MonitorFactory#getReportAsTabularData() that
returns a javax.management.openmbean.TabularData

* Create MonitorService and MonitorServiceMBean
under com.jamonapi.jmx to expose MonitorFactory to JMX
management (is/set enabled, reset and getReport() )

* add #getDataType(ArrayList) and
#getDataTypeThis(ArrayList) to MinimalMonitor and its
implementors : javax.management.openmbean.CompositeType
requires the type of the data

* add #getDataAsObject(ArrayList) and
#getDataAsObjectThis(ArrayList) to MinimalMonitor and
its implementors :
javax.management.openmbean.CompositeType can hold
Object data that easier to process than String returned
by #getData(ArrayList)

* Add JMX support to com.jamonapi.MonitorConverter
with new method #getReportAsTabularData()

* Add JAMonJmxAdmin.jsp under src/webapp : JMX
enabled version of JAMonAdmin.jsp

* Add com.jamonapi.jmx.JmxServerTest and
JmxClientTest :
o server side : start main method of
JmxServerTest to launch a simple test (with JDK < 1.5
or mx4j jars)
o client side :
+ use JmxClientTest (with JDK < 1.5 or
mx4j jars)
+ use mc4j (http://mc4j.sf.net) wit
"default jsr160" config to connect
("service:jmx:rmi:///jndi/rmi://localhost:9999/server")

Discussion

  • Cyrille Le Clerc

    jamonapiWithJmxSupport.patch

     
  • Matthias Sefrin

    Matthias Sefrin - 2008-12-17

    No progress on this one since 2005? Would really like to see JMX support in JAMon.