public class NoOpMetricRegistry extends Object implements MetricRegistry
| Modifier and Type | Field and Description |
|---|---|
static MetricRegistry |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
char |
getDelimiter()
Returns the global delimiter.
|
char |
getDelimiter(int index)
Returns the configured delimiter for the reporter with the given index.
|
String |
getMetricQueryServicePath()
Returns the path of the
MetricQueryService or null, if none is started. |
int |
getNumberReporters()
Returns the number of registered reporters.
|
ScopeFormats |
getScopeFormats()
Returns the scope formats.
|
void |
register(org.apache.flink.metrics.Metric metric,
String metricName,
AbstractMetricGroup group)
Registers a new
Metric with this registry. |
void |
unregister(org.apache.flink.metrics.Metric metric,
String metricName,
AbstractMetricGroup group)
Un-registers the given
Metric with this registry. |
public static final MetricRegistry INSTANCE
public char getDelimiter()
MetricRegistrygetDelimiter in interface MetricRegistrypublic char getDelimiter(int index)
MetricRegistrygetDelimiter in interface MetricRegistryindex - index of the reporter whose delimiter should be usedpublic int getNumberReporters()
MetricRegistrygetNumberReporters in interface MetricRegistrypublic void register(org.apache.flink.metrics.Metric metric,
String metricName,
AbstractMetricGroup group)
MetricRegistryMetric with this registry.register in interface MetricRegistrymetric - 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,
AbstractMetricGroup group)
MetricRegistryMetric with this registry.unregister in interface MetricRegistrymetric - the metric that should be removedmetricName - the name of the metricgroup - the group that contains the metricpublic ScopeFormats getScopeFormats()
MetricRegistrygetScopeFormats in interface MetricRegistry@Nullable public String getMetricQueryServicePath()
MetricRegistryMetricQueryService or null, if none is started.getMetricQueryServicePath in interface MetricRegistryCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.