public final class DefaultMonitorRegistry extends java.lang.Object implements MonitorRegistry
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.
If the default JmxMonitorRegistry is used, the property
com.netflix.servo.DefaultMonitorRegistry.jmxMapperClass can optionally be
specified to control how monitors are mapped to JMX ObjectName.
This property specifies the ObjectNameMapper
implementation class to use. The implementation must have a constructor with
no arguments.
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static MonitorRegistry getInstance()
public java.util.Collection<Monitor<?>> getRegisteredMonitors()
getRegisteredMonitors in interface MonitorRegistrypublic void register(Monitor<?> monitor)
register in interface MonitorRegistrypublic void unregister(Monitor<?> monitor)
unregister in interface MonitorRegistry