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(Metric metric,
String metricName,
AbstractMetricGroup group)
Registers a new
Metric with this registry. |
void |
unregister(Metric metric,
String metricName,
AbstractMetricGroup group)
Un-registers the given
Metric with this registry. |
public static final MetricRegistry INSTANCE
public char getDelimiter()
MetricRegistry
getDelimiter
in interface MetricRegistry
public char getDelimiter(int index)
MetricRegistry
getDelimiter
in interface MetricRegistry
index
- index of the reporter whose delimiter should be usedpublic int getNumberReporters()
MetricRegistry
getNumberReporters
in interface MetricRegistry
public void register(Metric metric, String metricName, AbstractMetricGroup group)
MetricRegistry
Metric
with this registry.register
in interface MetricRegistry
metric
- the metric that was addedmetricName
- the name of the metricgroup
- the group that contains the metricpublic void unregister(Metric metric, String metricName, AbstractMetricGroup group)
MetricRegistry
Metric
with this registry.unregister
in interface MetricRegistry
metric
- the metric that should be removedmetricName
- the name of the metricgroup
- the group that contains the metricpublic ScopeFormats getScopeFormats()
MetricRegistry
getScopeFormats
in interface MetricRegistry
@Nullable public String getMetricQueryServicePath()
MetricRegistry
MetricQueryService
or null, if none is started.getMetricQueryServicePath
in interface MetricRegistry
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.