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