| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.metrics.util.MetricsRegistry
MetricsRegistry.
@Deprecated
@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"})
public class MetricsRegistryThis is the registry for metrics. Related set of metrics should be declared in a holding class and registered in a registry for those metrics which is also stored in the the holding class.
| Constructor Summary | |
|---|---|
| MetricsRegistry()Deprecated. | |
| Method Summary | |
|---|---|
|  void | add(String metricsName,
    MetricsBase theMetricsObj)Deprecated. Add a new metrics to the registry | 
|  MetricsBase | get(String metricsName)Deprecated. | 
|  Collection<String> | getKeyList()Deprecated. | 
|  Collection<MetricsBase> | getMetricsList()Deprecated. | 
|  int | size()Deprecated. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MetricsRegistry()
| Method Detail | 
|---|
public int size()
public void add(String metricsName,
                MetricsBase theMetricsObj)
metricsName - - the nametheMetricsObj - - the metrics
IllegalArgumentException - if a name is already registeredpublic MetricsBase get(String metricsName)
metricsName - 
public Collection<String> getKeyList()
public Collection<MetricsBase> getMetricsList()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||