org.axonframework.monitoring.jmx
Class JmxMonitorRegistry
java.lang.Object
org.axonframework.monitoring.MonitorRegistry
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmxMonitorRegistry
public JmxMonitorRegistry()
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.