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
bindJmxReporter, 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(T obj, ToDoubleFunction<T> mapper)Create autoGauge according to metric framework.CountercreateCounter()GaugecreateGauge()Create gauge according to metric framework.HistogramcreateHistogram(MetricInfo metricInfo)Create histogram according to metric framework.RatecreateRate()Create rate according to metric framework.TimercreateTimer()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, setBindJmxReporter, 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()
- Specified by:
createCounterin classAbstractMetricManager
-
createAutoGauge
public <T> AutoGauge createAutoGauge(T obj, ToDoubleFunction<T> mapper)
Description copied from class:AbstractMetricManagerCreate autoGauge according to metric framework.- Specified by:
createAutoGaugein classAbstractMetricManager- Parameters:
obj- which will be monitored automaticallymapper- use which to map the obj to a double value
-
createGauge
public Gauge createGauge()
Description copied from class:AbstractMetricManagerCreate gauge according to metric framework.- Specified by:
createGaugein classAbstractMetricManager
-
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()
Description copied from class:AbstractMetricManagerCreate rate according to metric framework.- Specified by:
createRatein classAbstractMetricManager
-
createTimer
public Timer createTimer()
Description copied from class:AbstractMetricManagerCreate timer according to metric framework.- Specified by:
createTimerin classAbstractMetricManager
-
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
-
-