Class DoubleMetricImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.metric.AbstractMetric
-
- org.apache.ignite.internal.processors.metric.impl.DoubleMetricImpl
-
- All Implemented Interfaces:
DoubleMetric,Metric
public class DoubleMetricImpl extends AbstractMetric implements DoubleMetric
Double metric.
-
-
Constructor Summary
Constructors Constructor Description DoubleMetricImpl(String name, @Nullable String desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(double x)Adds x to the metric.voidreset()Resets metric state.doublevalue()voidvalue(double val)Sets value.-
Methods inherited from class org.apache.ignite.internal.processors.metric.AbstractMetric
description, equals, hashCode, name
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.spi.metric.DoubleMetric
getAsString
-
Methods inherited from interface org.apache.ignite.spi.metric.Metric
description, name
-
-
-
-
Method Detail
-
add
public void add(double x)
Adds x to the metric.- Parameters:
x- Value to be added.
-
value
public void value(double val)
Sets value.- Parameters:
val- Value.
-
value
public double value()
- Specified by:
valuein interfaceDoubleMetric- Returns:
- Value of the metric.
-
-