public class DoNothingMetricManager extends AbstractMetricManager
| 限定符和类型 | 字段和说明 |
|---|---|
static DoNothingCounter |
doNothingCounter |
static DoNothingGauge |
doNothingGauge |
static DoNothingHistogram |
doNothingHistogram |
static DoNothingRate |
doNothingRate |
static DoNothingTimer |
doNothingTimer |
isEnableMetric, METRIC_CONFIG, metrics, nameToTagInfo| 构造器和说明 |
|---|
DoNothingMetricManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Gauge |
createAutoGauge(MetricInfo metricInfo,
T obj,
ToLongFunction<T> mapper) |
Counter |
createCounter(MetricInfo metricInfo) |
Gauge |
createGauge(MetricInfo metricInfo) |
Histogram |
createHistogram(MetricInfo metricInfo) |
Rate |
createRate(MetricInfo metricInfo) |
Timer |
createTimer(MetricInfo metricInfo) |
boolean |
isEnableMetric()
Is metric service enabled
|
boolean |
isEnableMetricInGivenLevel(MetricLevel metricLevel)
Is metric service enabled in specific level
|
protected void |
remove(MetricType type,
MetricInfo metricInfo) |
protected boolean |
stopFramework() |
count, equals, gauge, getAllCounters, getAllGauges, getAllHistograms, getAllMetricKeys, getAllRates, getAllTimers, getOrCreateAutoGauge, getOrCreateCounter, getOrCreateGauge, getOrCreateHistogram, getOrCreateRate, getOrCreateTimer, hashCode, histogram, rate, remove, stop, timerpublic static final DoNothingCounter doNothingCounter
public static final DoNothingHistogram doNothingHistogram
public static final DoNothingGauge doNothingGauge
public static final DoNothingRate doNothingRate
public static final DoNothingTimer doNothingTimer
public Counter createCounter(MetricInfo metricInfo)
createCounter 在类中 AbstractMetricManagerpublic <T> Gauge createAutoGauge(MetricInfo metricInfo, T obj, ToLongFunction<T> mapper)
createAutoGauge 在类中 AbstractMetricManagerpublic Gauge createGauge(MetricInfo metricInfo)
createGauge 在类中 AbstractMetricManagerpublic Histogram createHistogram(MetricInfo metricInfo)
createHistogram 在类中 AbstractMetricManagerpublic Rate createRate(MetricInfo metricInfo)
createRate 在类中 AbstractMetricManagerpublic Timer createTimer(MetricInfo metricInfo)
createTimer 在类中 AbstractMetricManagerpublic boolean isEnableMetric()
AbstractMetricManagerisEnableMetric 在类中 AbstractMetricManagerpublic boolean isEnableMetricInGivenLevel(MetricLevel metricLevel)
AbstractMetricManagerprotected void remove(MetricType type, MetricInfo metricInfo)
remove 在类中 AbstractMetricManagerprotected boolean stopFramework()
stopFramework 在类中 AbstractMetricManagerCopyright © 2022 The Apache Software Foundation. All rights reserved.