com.netflix.servo.jmx
Class JmxMonitorRegistry

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

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

Monitor registry backed by JMX. The monitor annotations on registered objects will be used to export the data to JMX. For details about the representation in JMX see MonitorMBean.


Constructor Summary
JmxMonitorRegistry(java.lang.String name)
          Creates a new instance that registers metrics with the local mbean server.
 
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

JmxMonitorRegistry

public JmxMonitorRegistry(java.lang.String name)
Creates a new instance that registers metrics with the local mbean server.

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