public class MetricRegistry extends Object
Metrics
. It serves as the
connection between MetricGroups
and MetricReporters
.Constructor and Description |
---|
MetricRegistry(Configuration config)
Creates a new MetricRegistry and starts the configured reporter.
|
Modifier and Type | Method and Description |
---|---|
char |
getDelimiter() |
List<MetricReporter> |
getReporters() |
ScopeFormats |
getScopeFormats() |
void |
register(Metric metric,
String metricName,
MetricGroup group)
Registers a new
Metric with this registry. |
void |
shutdown()
Shuts down this registry and the associated
MetricReporter . |
void |
unregister(Metric metric,
String metricName,
MetricGroup group)
Un-registers the given
Metric with this registry. |
public MetricRegistry(Configuration config)
public char getDelimiter()
public List<MetricReporter> getReporters()
public void shutdown()
MetricReporter
.public ScopeFormats getScopeFormats()
public void register(Metric metric, String metricName, MetricGroup group)
Metric
with this registry.metric
- the metric that was addedmetricName
- the name of the metricgroup
- the group that contains the metricpublic void unregister(Metric metric, String metricName, MetricGroup group)
Metric
with this registry.metric
- the metric that should be removedmetricName
- the name of the metricgroup
- the group that contains the metricCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.