Package cz.o2.proxima.core.metrics
Class AbsoluteMetric
- java.lang.Object
-
- cz.o2.proxima.core.metrics.Metric<java.lang.Double>
-
- cz.o2.proxima.core.metrics.ScalarMetric
-
- cz.o2.proxima.core.metrics.AbsoluteMetric
-
- All Implemented Interfaces:
ScalarMetricMBean<java.lang.Double>,java.io.Serializable
@Stable public class AbsoluteMetric extends ScalarMetric
A metric with absolute value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbsoluteMetric(java.lang.String group, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.DoublegetValue()Retrieve current value of the metric.voidincrement(double d)Increment the metric by given double value.voidreset()Reset the metric to initial state.voidsetValue(double v)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cz.o2.proxima.core.metrics.ScalarMetricMBean
getGroup, getName
-
-
-
-
Method Detail
-
increment
public void increment(double d)
Description copied from class:MetricIncrement the metric by given double value.
-
getValue
public java.lang.Double getValue()
Description copied from class:MetricRetrieve current value of the metric.- Specified by:
getValuein interfaceScalarMetricMBean<java.lang.Double>- Specified by:
getValuein classMetric<java.lang.Double>- Returns:
- current value
-
setValue
public void setValue(double v)
-
-