public class MonitorRegistries extends Object
MonitorLauncher
Modifier and Type | Method and Description |
---|---|
static com.codahale.metrics.health.HealthCheckRegistry |
getHealthCheckRegistry()
Returns the singleton shared registry for health check instances.
|
static com.codahale.metrics.MetricRegistry |
getMetricRegistry()
Returns the singleton shared registry for metric instances.
|
static void |
register(com.codahale.metrics.MetricSet metricSet)
Registers a metric set.
|
static void |
register(String name,
com.codahale.metrics.health.HealthCheck check)
Registers, updates or unregisters a health check.
|
static void |
register(String name,
com.codahale.metrics.Metric metric)
Registers, updates or unregisters a metric.
|
public static com.codahale.metrics.MetricRegistry getMetricRegistry()
public static com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()
public static void register(com.codahale.metrics.MetricSet metricSet)
metricSet
- The metric set to register. If null
the
method will return immediately.public static void register(String name, com.codahale.metrics.Metric metric)
name
- The metric name. If null
the method will
return immediately.metric
- The metric, null
to unregister. If a metric
with the same name exists it will be replaced.public static void register(String name, com.codahale.metrics.health.HealthCheck check)
name
- The health check name. If null
the method will
return immediately.check
- The health check, null
to unregister. If a
metric with the same name exists it will be replaced.Copyright © 2015 Connect2id. All Rights Reserved.