Package org.apache.iotdb.metrics.impl
Class DoNothingTimer
- java.lang.Object
-
- org.apache.iotdb.metrics.utils.AbstractMetricMBean
-
- org.apache.iotdb.metrics.impl.DoNothingTimer
-
- All Implemented Interfaces:
DoNothingMetric,IMetric,Timer
public class DoNothingTimer extends AbstractMetricMBean implements Timer, DoNothingMetric
-
-
Constructor Summary
Constructors Constructor Description DoNothingTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCount()Get the countHistogramSnapshottakeSnapshot()Take snapshot of timer.voidupdate(long duration, TimeUnit unit)Update time of timer.-
Methods inherited from class org.apache.iotdb.metrics.utils.AbstractMetricMBean
objectName, setObjectName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.metrics.type.IMetric
setObjectName
-
Methods inherited from interface org.apache.iotdb.metrics.type.Timer
constructValueMap, updateMicros, updateMillis, updateNanos
-
-
-
-
Method Detail
-
update
public void update(long duration, TimeUnit unit)Description copied from interface:TimerUpdate time of timer.
-
takeSnapshot
public HistogramSnapshot takeSnapshot()
Description copied from interface:TimerTake snapshot of timer.- Specified by:
takeSnapshotin interfaceTimer
-
-