public class NoOpMetricRegistry extends Object implements MetricRegistry
Modifier and Type | Field and Description |
---|---|
static MetricRegistry |
INSTANCE |
Constructor and Description |
---|
NoOpMetricRegistry() |
Modifier and Type | Method and Description |
---|---|
char |
getDelimiter()
Returns the global delimiter.
|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricQueryServiceGatewayRpcAddress
public static final MetricRegistry INSTANCE
public char getDelimiter()
MetricRegistry
getDelimiter
in interface MetricRegistry
public 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
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.