public abstract class MetricsConfigurerAdapter extends Object implements MetricsConfigurer, org.springframework.beans.factory.DisposableBean
MetricsConfigurer with empty methods allowing
sub-classes to override only the methods they're interested in.EnableMetrics,
MetricsConfigurer| Constructor and Description |
|---|
MetricsConfigurerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureReporters(com.codahale.metrics.MetricRegistry metricRegistry)
Configure reporters.
|
void |
destroy()
Called when the Spring context is closed, this method stops reporters.
|
com.codahale.metrics.health.HealthCheckRegistry |
getHealthCheckRegistry()
Override this method to provide a custom
HealthCheckRegistry. |
com.codahale.metrics.MetricRegistry |
getMetricRegistry()
Override this method to provide a custom
MetricRegistry. |
protected <R extends Closeable> |
registerReporter(R reporter)
Registers a reporter for destruction on Spring context close
|
public void configureReporters(com.codahale.metrics.MetricRegistry metricRegistry)
This implementation is empty.
configureReporters in interface MetricsConfigurerpublic com.codahale.metrics.MetricRegistry getMetricRegistry()
MetricRegistry.
This implementation returns null.
getMetricRegistry in interface MetricsConfigurerpublic com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()
HealthCheckRegistry.
This implementation returns null.
getHealthCheckRegistry in interface MetricsConfigurerpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionprotected <R extends Closeable> R registerReporter(R reporter)
reporter - a reporter which implements CloseableCopyright © 2012-2014. All Rights Reserved.