org.axonframework.monitoring.jmx
Class JmxMonitorRegistry

java.lang.Object
  extended by org.axonframework.monitoring.MonitorRegistry
      extended by org.axonframework.monitoring.jmx.JmxMonitorRegistry

public final class JmxMonitorRegistry
extends MonitorRegistry

Utility class that allows Axon-related components to be configured with an MBeanServer. By default all MBeans are registered with the platform MBean Server using a standard ObjectName.

Since:
0.6
Author:
Jettro Coenradie, Allard Buijze

Constructor Summary
JmxMonitorRegistry()
           
 
Method Summary
 void registerBean(Object mBean, Class<?> componentType)
          Attempts to register the given mBean as an MBean with the default MBeanServer.
 
Methods inherited from class org.axonframework.monitoring.MonitorRegistry
registerMonitoringBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxMonitorRegistry

public JmxMonitorRegistry()
Method Detail

registerBean

public void registerBean(Object mBean,
                         Class<?> componentType)
Attempts to register the given mBean as an MBean with the default MBeanServer. If registration fails, no exceptions are thrown. Instead, failure is logged and silently accepted.

Specified by:
registerBean in class MonitorRegistry
Parameters:
mBean - The instance to register as MBean. Note that this instance needs to be MBean compliant. Otherwise, registration fails silently.
componentType - The type of component that the monitoring bean provides information for


Copyright © 2010-2016. All Rights Reserved.