org.apache.hadoop.metrics.spi
Class MetricValue

java.lang.Object
  extended by org.apache.hadoop.metrics.spi.MetricValue

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class MetricValue
extends Object

A Number that is either an absolute or an incremental amount.


Field Summary
static boolean ABSOLUTE
           
static boolean INCREMENT
           
 
Constructor Summary
MetricValue(Number number, boolean isIncrement)
          Creates a new instance of MetricValue
 
Method Summary
 Number getNumber()
           
 boolean isAbsolute()
           
 boolean isIncrement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABSOLUTE

public static final boolean ABSOLUTE
See Also:
Constant Field Values

INCREMENT

public static final boolean INCREMENT
See Also:
Constant Field Values
Constructor Detail

MetricValue

public MetricValue(Number number,
                   boolean isIncrement)
Creates a new instance of MetricValue

Method Detail

isIncrement

public boolean isIncrement()

isAbsolute

public boolean isAbsolute()

getNumber

public Number getNumber()


Copyright © 2014 Apache Software Foundation. All Rights Reserved.