org.apache.hadoop.metrics2
Class MetricGauge<T extends Number>
java.lang.Object
   org.apache.hadoop.metrics2.Metric
org.apache.hadoop.metrics2.Metric
       org.apache.hadoop.metrics2.MetricGauge<T>
org.apache.hadoop.metrics2.MetricGauge<T>
- Type Parameters:
- T- value type of the metric
- public abstract class MetricGauge<T extends Number> 
- extends Metric
A generic immutable gauge metric
 
 
 
| Method Summary | 
| abstract  T | value()Get the value of the metric
 | 
 
 
 
MetricGauge
public MetricGauge(String name,
                   String description)
- Construct a gauge metric
 
- Parameters:
- name- of the metric
- description- of the metric
 
value
public abstract T value()
- Description copied from class: Metric
- Get the value of the metric
 
- 
- Specified by:
- valuein class- Metric
 
- 
- Returns:
- the value of the metric
 
Copyright © 2009 The Apache Software Foundation