public interface IMetricsContext
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.Counter |
registerCounter(String name) |
<T> com.codahale.metrics.Gauge<T> |
registerGauge(String name,
com.codahale.metrics.Gauge<T> gauge) |
com.codahale.metrics.Histogram |
registerHistogram(String name) |
com.codahale.metrics.Meter |
registerMeter(String name) |
CombinedMetric |
registerMetric(String name,
ICombiner combiner,
int timeBucketSizeInSecs)
Deprecated.
in favor of metrics v2 (the non-deprecated methods on this class)
|
ReducedMetric |
registerMetric(String name,
IReducer reducer,
int timeBucketSizeInSecs)
Deprecated.
in favor of metrics v2 (the non-deprecated methods on this class)
|
<T extends IMetric> |
registerMetric(String name,
T metric,
int timeBucketSizeInSecs)
Deprecated.
in favor of metrics v2 (the non-deprecated methods on this class)
|
com.codahale.metrics.Timer |
registerTimer(String name) |
@Deprecated <T extends IMetric> T registerMetric(String name, T metric, int timeBucketSizeInSecs)
Register metric.
@Deprecated ReducedMetric registerMetric(String name, IReducer reducer, int timeBucketSizeInSecs)
Register metric.
@Deprecated CombinedMetric registerMetric(String name, ICombiner combiner, int timeBucketSizeInSecs)
Register metric.
com.codahale.metrics.Timer registerTimer(String name)
com.codahale.metrics.Histogram registerHistogram(String name)
com.codahale.metrics.Meter registerMeter(String name)
com.codahale.metrics.Counter registerCounter(String name)
<T> com.codahale.metrics.Gauge<T> registerGauge(String name, com.codahale.metrics.Gauge<T> gauge)
Copyright © 2019 The Apache Software Foundation. All rights reserved.