com.netflix.servo
Class DefaultMonitorRegistry

java.lang.Object
  extended by com.netflix.servo.DefaultMonitorRegistry
All Implemented Interfaces:
MonitorRegistry

public final class DefaultMonitorRegistry
extends java.lang.Object
implements MonitorRegistry

Default registry that delegates all actions to a class specified by the com.netflix.servo.DefaultMonitorRegistry.registryClass property. The specified registry class must have a constructor with no arguments. If the property is not specified or the class cannot be loaded an instance of JmxMonitorRegistry will be used.


Method Summary
static MonitorRegistry getInstance()
          Returns the instance of this registry.
 java.util.Collection<Monitor<?>> getRegisteredMonitors()
          The set of registered Monitor objects.
 void register(Monitor<?> monitor)
          Register a new monitor in the registry.
 void unregister(Monitor<?> monitor)
          Unregister a Monitor from the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MonitorRegistry getInstance()
Returns the instance of this registry.


getRegisteredMonitors

public java.util.Collection<Monitor<?>> getRegisteredMonitors()
The set of registered Monitor objects.

Specified by:
getRegisteredMonitors in interface MonitorRegistry

register

public void register(Monitor<?> monitor)
Register a new monitor in the registry.

Specified by:
register in interface MonitorRegistry

unregister

public void unregister(Monitor<?> monitor)
Unregister a Monitor from the registry.

Specified by:
unregister in interface MonitorRegistry