public class MetricRegistry extends Object
Metrics. It serves as the
connection between MetricGroups and MetricReporters.| Constructor and Description |
|---|
MetricRegistry(org.apache.flink.configuration.Configuration config)
Creates a new MetricRegistry and starts the configured reporter.
|
| Modifier and Type | Method and Description |
|---|---|
char |
getDelimiter() |
List<org.apache.flink.metrics.reporter.MetricReporter> |
getReporters() |
ScopeFormats |
getScopeFormats() |
void |
register(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group)
Registers a new
Metric with this registry. |
void |
shutdown()
Shuts down this registry and the associated
MetricReporter. |
void |
unregister(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.MetricGroup group)
Un-registers the given
Metric with this registry. |
public MetricRegistry(org.apache.flink.configuration.Configuration config)
public char getDelimiter()
public List<org.apache.flink.metrics.reporter.MetricReporter> getReporters()
public void shutdown()
MetricReporter.public ScopeFormats getScopeFormats()
public void register(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.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(org.apache.flink.metrics.Metric metric,
String metricName,
org.apache.flink.metrics.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–2016 The Apache Software Foundation. All rights reserved.