org.axonframework.monitoring
Class MonitorRegistry

java.lang.Object
  extended by org.axonframework.monitoring.MonitorRegistry
Direct Known Subclasses:
JmxMonitorRegistry

public abstract class MonitorRegistry
extends Object

Abstract Factory providing access to the MonitorRegistry implementations available at runtime. The MonitorRegistry allows beans providing Monitoring and Management services to be registered with the MonitorRegistry implementations on the classpath.

If no MonitorRegistry implementations are available on the classpath, nothing happens.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
MonitorRegistry()
           
 
Method Summary
protected abstract  void registerBean(Object monitoringBean, Class<?> componentType)
          Registers the bean with the Registry.
static void registerMonitoringBean(Object monitoringBean, Class<?> componentType)
          Register the given monitoringBean with the registries on the classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorRegistry

public MonitorRegistry()
Method Detail

registerMonitoringBean

public static void registerMonitoringBean(Object monitoringBean,
                                          Class<?> componentType)
Register the given monitoringBean with the registries on the classpath. If an exception or error occurs while registering the monitoringBean, it is ignored.

Parameters:
monitoringBean - The bean containing the monitoring information
componentType - The type of component that the monitoring bean provides information for

registerBean

protected abstract void registerBean(Object monitoringBean,
                                     Class<?> componentType)
Registers the bean with the Registry. This bean may be an infrastructure component, or an Object that provides information and management services on its behalf.

Parameters:
monitoringBean - The bean to register
componentType - The type of component that the monitoring bean provides information for


Copyright © 2010-2016. All Rights Reserved.