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")
jamonapiWithJmxSupport.patch
No progress on this one since 2005? Would really like to see JMX support in JAMon.