Package com.yahoo.container.jdisc.state
Class CountMetric
- java.lang.Object
-
- com.yahoo.container.jdisc.state.MetricValue
-
- com.yahoo.container.jdisc.state.CountMetric
-
public final class CountMetric extends MetricValue
A metric which is counting an accumulative value- Author:
- Simon Thoresen Hult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
Returns the accumulated count of this metric in the time intervalstatic CountMetric
newInstance(long val)
static CountMetric
newSingleValue(Number val)
-
-
-
Method Detail
-
getCount
public long getCount()
Returns the accumulated count of this metric in the time interval
-
newSingleValue
public static CountMetric newSingleValue(Number val)
-
newInstance
public static CountMetric newInstance(long val)
-
-