Class BooleanMetricImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.metric.AbstractMetric
-
- org.apache.ignite.internal.processors.metric.impl.BooleanMetricImpl
-
- All Implemented Interfaces:
BooleanMetric,Metric
public class BooleanMetricImpl extends AbstractMetric implements BooleanMetric
Metric that holds boolean primitive.
-
-
Constructor Summary
Constructors Constructor Description BooleanMetricImpl(String name, @Nullable String desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreset()Resets metric state.booleanvalue()voidvalue(boolean 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.BooleanMetric
getAsString
-
Methods inherited from interface org.apache.ignite.spi.metric.Metric
description, name
-
-
-
-
Method Detail
-
value
public void value(boolean val)
Sets value.- Parameters:
val- Value.
-
value
public boolean value()
- Specified by:
valuein interfaceBooleanMetric- Returns:
- Value of the metric.
-
-