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 DoNothingAutoGaugedoNothingAutoGaugestatic DoNothingCounterdoNothingCounterstatic DoNothingGaugedoNothingGaugestatic DoNothingHistogramdoNothingHistogramstatic DoNothingRatedoNothingRatestatic DoNothingTimerdoNothingTimer-
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.ToLongFunction<T> mapper)Create autoGauge according to metric frameworkCountercreateCounter(MetricInfo metricInfo)GaugecreateGauge(MetricInfo metricInfo)Create gauge according to metric frameworkHistogramcreateHistogram(MetricInfo metricInfo)Create histogram according to metric frameworkRatecreateRate(MetricInfo metricInfo)Create rate according to metric frameworkTimercreateTimer(MetricInfo metricInfo)Create timer according to metric frameworkbooleanisEnableMetricInGivenLevel(MetricLevel metricLevel)Is metric service enabled in specific levelprotected 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
-
doNothingCounter
public static final DoNothingCounter doNothingCounter
-
doNothingHistogram
public static final DoNothingHistogram doNothingHistogram
-
doNothingAutoGauge
public static final DoNothingAutoGauge doNothingAutoGauge
-
doNothingGauge
public static final DoNothingGauge doNothingGauge
-
doNothingRate
public static final DoNothingRate doNothingRate
-
doNothingTimer
public static final DoNothingTimer doNothingTimer
-
-
Method Detail
-
createCounter
public Counter createCounter(MetricInfo metricInfo)
- Specified by:
createCounterin classAbstractMetricManager
-
createAutoGauge
public <T> AutoGauge createAutoGauge(MetricInfo metricInfo, T obj, java.util.function.ToLongFunction<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 long 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
-
-