Class ObjectMetricImpl<T>
- java.lang.Object
-
- org.apache.ignite.internal.processors.metric.AbstractMetric
-
- org.apache.ignite.internal.processors.metric.impl.ObjectMetricImpl<T>
-
- All Implemented Interfaces:
Metric,ObjectMetric<T>
public class ObjectMetricImpl<T> extends AbstractMetric implements ObjectMetric<T>
Implementation ofObjectMetric.
-
-
Constructor Summary
Constructors Constructor Description ObjectMetricImpl(String name, @Nullable String desc, Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>type()Tvalue()voidvalue(T 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.Metric
description, name, reset
-
Methods inherited from interface org.apache.ignite.spi.metric.ObjectMetric
getAsString
-
-
-
-
Method Detail
-
value
public T value()
- Specified by:
valuein interfaceObjectMetric<T>- Returns:
- Value ot the metric.
-
type
public Class<T> type()
- Specified by:
typein interfaceObjectMetric<T>- Returns:
- Type of metric value.
-
value
public void value(T val)
Sets value.- Parameters:
val- Value.
-
-