|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.analytics.MetricValue
public class MetricValue
A Number that is either an absolute or an incremental amount. Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com ) & Karthik Ranganathan ( kranganathan@facebook.com )
Field Summary | |
---|---|
static boolean |
ABSOLUTE
|
static boolean |
INCREMENT
|
Constructor Summary | |
---|---|
MetricValue(java.lang.Number number,
boolean isIncrement)
Creates a new instance of MetricValue |
Method Summary | |
---|---|
java.lang.Number |
getNumber()
Returns the current number value of the metric. |
boolean |
isAbsolute()
Checks if the value of this metric is always an absolute value. |
boolean |
isIncrement()
Checks if this metric can be incremented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean ABSOLUTE
public static final boolean INCREMENT
Constructor Detail |
---|
public MetricValue(java.lang.Number number, boolean isIncrement)
number
- this initializes the initial value of this metricisIncrement
- sets if the metric can be incremented or only setMethod Detail |
---|
public boolean isIncrement()
public boolean isAbsolute()
public java.lang.Number getNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |