com.twitter.common.metrics
Class AbstractGauge<T extends Number>

java.lang.Object
  extended by com.twitter.common.metrics.AbstractGauge<T>
Type Parameters:
T - Value type.
All Implemented Interfaces:
Gauge<T>

public abstract class AbstractGauge<T extends Number>
extends Object
implements Gauge<T>

A partial Gauge implementation.


Constructor Summary
AbstractGauge(String name)
          Creates an abstract gauge using the provided name.
 
Method Summary
 String getName()
          Gets the name of this stat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.twitter.common.metrics.Gauge
read
 

Constructor Detail

AbstractGauge

public AbstractGauge(String name)
Creates an abstract gauge using the provided name.

Parameters:
name - Name of the gauge.
Method Detail

getName

public String getName()
Description copied from interface: Gauge
Gets the name of this stat. For sake of convention, variable names should be alphanumeric, and use underscores.

Specified by:
getName in interface Gauge<T extends Number>
Returns:
The variable name.