com.netflix.servo
Class BasicMonitorRegistry

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

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

Simple monitor registry backed by a Set.


Constructor Summary
BasicMonitorRegistry()
          Creates a new instance.
 
Method Summary
 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
 

Constructor Detail

BasicMonitorRegistry

public BasicMonitorRegistry()
Creates a new instance.

Method Detail

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