The JMX adapter
The Java Management Extensions (JMX) adapter reflects JMX MBeans and their properties and notifications as topics.
The JMX adapter is packaged in the Diffusion™ publisher. The Diffusion publisher must be running for the JMX adapter be enabled.
You can configure the adapter to reflect the state of JMX MBeans and MXBeans as topics. These MBeans can be built-in, Diffusion, or third-party in origin.
- Whether it is enabled or disabled.
By default, the adapter is enabled.
- Which MBeans are reflected as topics.
By default, all Diffusion MBeans, java.nio:*, java.lang:*, and java.util.logging:* are reflected as topics.
- How often the data on those topics is refreshed.
By default, the topics are refreshed every 3 seconds.
Many statistics are available as MBean properties, for example, CPU load, OS version, number of file-descriptors, and threads. Making these statistics available as topics to Diffusion clients makes possible the implementation of system monitoring solutions to the web, and all other Diffusion platforms.
Record starting ... | Holding |
---|---|
message | javax.management.Notification.getMessage() |
sequenceNumber | javax.management.Notification,getSequenceNumber() |
timeStamp | javax.management.Notification.getTimeStamp() |
userData | javax.management.Notification.getUserData() if present |
source | javax.management.Notification.getSource() |
MXBeans versus Simple MBeans
- CompositeType Fields within the composite attribute are mapped to discrete topics.
- ArrayType One dimensional arrays are presented as a single record with many values. Two dimensional arrays are not supported. ArrayType attributes holding attributes that are not SimpleType are not supported (for example, an ArrayType attribute holding Composite or ArrayType values)