Package org.apache.iotdb.metrics.impl
Class DoNothingMetricManager
- java.lang.Object
-
- org.apache.iotdb.metrics.AbstractMetricManager
-
- org.apache.iotdb.metrics.impl.DoNothingMetricManager
-
public class DoNothingMetricManager extends AbstractMetricManager
-
-
Field Summary
Fields Modifier and Type Field Description static DoNothingAutoGaugeDO_NOTHING_AUTO_GAUGEstatic DoNothingCounterDO_NOTHING_COUNTERstatic DoNothingGaugeDO_NOTHING_GAUGEstatic DoNothingHistogramDO_NOTHING_HISTOGRAMstatic DoNothingRateDO_NOTHING_RATEstatic DoNothingTimerDO_NOTHING_TIMER-
Fields inherited from class org.apache.iotdb.metrics.AbstractMetricManager
METRIC_CONFIG, metrics, nameToMetaInfo
-
-
Constructor Summary
Constructors Constructor Description DoNothingMetricManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> AutoGaugecreateAutoGauge(MetricInfo metricInfo, T obj, java.util.function.ToDoubleFunction<T> mapper)Create autoGauge according to metric framework.CountercreateCounter(MetricInfo metricInfo)GaugecreateGauge(MetricInfo metricInfo)Create gauge according to metric framework.HistogramcreateHistogram(MetricInfo metricInfo)Create histogram according to metric framework.RatecreateRate(MetricInfo metricInfo)Create rate according to metric framework.TimercreateTimer(MetricInfo metricInfo)Create timer according to metric framework.booleanisEnableMetricInGivenLevel(MetricLevel metricLevel)Is metric service enabled in specific level.protected voidremoveMetric(MetricType type, MetricInfo metricInfo)protected booleanstopFramework()-
Methods inherited from class org.apache.iotdb.metrics.AbstractMetricManager
count, createAutoGauge, equals, gauge, getAllMetricKeys, getAllMetrics, getAutoGauge, getMetricsByType, getOrCreateCounter, getOrCreateGauge, getOrCreateHistogram, getOrCreateRate, getOrCreateTimer, hashCode, histogram, rate, remove, stop, timer
-
-
-
-
Field Detail
-
DO_NOTHING_COUNTER
public static final DoNothingCounter DO_NOTHING_COUNTER
-
DO_NOTHING_HISTOGRAM
public static final DoNothingHistogram DO_NOTHING_HISTOGRAM
-
DO_NOTHING_AUTO_GAUGE
public static final DoNothingAutoGauge DO_NOTHING_AUTO_GAUGE
-
DO_NOTHING_GAUGE
public static final DoNothingGauge DO_NOTHING_GAUGE
-
DO_NOTHING_RATE
public static final DoNothingRate DO_NOTHING_RATE
-
DO_NOTHING_TIMER
public static final DoNothingTimer DO_NOTHING_TIMER
-
-
Method Detail
-
createCounter
public Counter createCounter(MetricInfo metricInfo)
- Specified by:
createCounterin classAbstractMetricManager
-
createAutoGauge
public <T> AutoGauge createAutoGauge(MetricInfo metricInfo, T obj, java.util.function.ToDoubleFunction<T> mapper)
Description copied from class:AbstractMetricManagerCreate autoGauge according to metric framework.- Specified by:
createAutoGaugein classAbstractMetricManager- Parameters:
metricInfo- the metricInfo of autoGaugeobj- which will be monitored automaticallymapper- use which to map the obj to a double value
-
createGauge
public Gauge createGauge(MetricInfo metricInfo)
Description copied from class:AbstractMetricManagerCreate gauge according to metric framework.- Specified by:
createGaugein classAbstractMetricManager- Parameters:
metricInfo- the metricInfo of gauge
-
createHistogram
public Histogram createHistogram(MetricInfo metricInfo)
Description copied from class:AbstractMetricManagerCreate histogram according to metric framework.- Specified by:
createHistogramin classAbstractMetricManager- Parameters:
metricInfo- the metricInfo of metric
-
createRate
public Rate createRate(MetricInfo metricInfo)
Description copied from class:AbstractMetricManagerCreate rate according to metric framework.- Specified by:
createRatein classAbstractMetricManager- Parameters:
metricInfo- the metricInfo of rate
-
createTimer
public Timer createTimer(MetricInfo metricInfo)
Description copied from class:AbstractMetricManagerCreate timer according to metric framework.- Specified by:
createTimerin classAbstractMetricManager- Parameters:
metricInfo- the metricInfo of metric
-
isEnableMetricInGivenLevel
public boolean isEnableMetricInGivenLevel(MetricLevel metricLevel)
Description copied from class:AbstractMetricManagerIs metric service enabled in specific level.- Overrides:
isEnableMetricInGivenLevelin classAbstractMetricManager
-
removeMetric
protected void removeMetric(MetricType type, MetricInfo metricInfo)
- Specified by:
removeMetricin classAbstractMetricManager
-
stopFramework
protected boolean stopFramework()
- Specified by:
stopFrameworkin classAbstractMetricManager
-
-