public class MetricsRegistry extends Object
Constructor and Description |
---|
MetricsRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
add(String metricsName,
MetricsBase theMetricsObj)
Add a new metrics to the registry
|
MetricsBase |
get(String metricsName) |
Collection<String> |
getKeyList() |
Collection<MetricsBase> |
getMetricsList() |
int |
size() |
public int size()
public void add(String metricsName, MetricsBase theMetricsObj)
metricsName
- - the nametheMetricsObj
- - the metricsIllegalArgumentException
- if a name is already registeredpublic MetricsBase get(String metricsName)
metricsName
- public Collection<String> getKeyList()
public Collection<MetricsBase> getMetricsList()
Copyright © 2010 The Apache Software Foundation