public class MetricsServiceImpl extends Object implements MetricsService
NOOP| Constructor and Description |
|---|
MetricsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
<A> A |
adaptTo(Class<A> type)
Adapts the service to the specified type.
|
Counter |
counter(String name)
Creates a new
Counter and registers it under the given name. |
Histogram |
histogram(String name)
Creates a new
Histogram and registers it under the given name. |
Meter |
meter(String name)
Creates a new
Meter and registers it under the given name. |
Timer |
timer(String name)
Creates a new
Timer and registers it under the given name. |
public Timer timer(String name)
MetricsServiceTimer and registers it under the given name.
If a timer with same name exists then same instance is returnedtimer in interface MetricsServicename - the name of the metricTimerpublic Histogram histogram(String name)
MetricsServiceHistogram and registers it under the given name.
If a histogram with same name exists then same instance is returned.histogram in interface MetricsServicename - the name of the metricHistogrampublic Counter counter(String name)
MetricsServiceCounter and registers it under the given name.
If a counter with same name exists then same instance is returnedcounter in interface MetricsServicename - the name of the metricCounterpublic Meter meter(String name)
MetricsServiceMeter and registers it under the given name.
If a meter with same name exists then same instance is returnedmeter in interface MetricsServicename - the name of the metricMeterpublic <A> A adaptTo(Class<A> type)
MetricsServiceMetricRegistryadaptTo in interface MetricsServiceA - The type to which this metric is to be adapted.type - Class object for the type to which this metric is to be adapted.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.