P
- parentMetricGroup to AbstractMetricGroup
public class FrontMetricGroup<P extends AbstractMetricGroup<?>> extends ProxyMetricGroup<P>
MetricGroup.getMetricIdentifier(String)
or MetricGroup.getMetricIdentifier(String, CharacterFilter)
.
This allows us to use reporter-specific delimiters, without requiring any action by the reporter.Modifier and Type | Field and Description |
---|---|
protected int |
reporterIndex |
parentMetricGroup
Constructor and Description |
---|
FrontMetricGroup(int reporterIndex,
P reference) |
Modifier and Type | Method and Description |
---|---|
String |
getLogicalScope(CharacterFilter filter) |
String |
getLogicalScope(CharacterFilter filter,
char delimiter) |
String |
getMetricIdentifier(String metricName)
Returns the fully qualified metric name, for example
"host-7.taskmanager-2.window_word_count.my-mapper.metricName" . |
String |
getMetricIdentifier(String metricName,
CharacterFilter filter)
Returns the fully qualified metric name, for example
"host-7.taskmanager-2.window_word_count.my-mapper.metricName" . |
public FrontMetricGroup(int reporterIndex, P reference)
public String getMetricIdentifier(String metricName)
MetricGroup
"host-7.taskmanager-2.window_word_count.my-mapper.metricName"
.getMetricIdentifier
in interface MetricGroup
getMetricIdentifier
in class ProxyMetricGroup<P extends AbstractMetricGroup<?>>
metricName
- metric namepublic String getMetricIdentifier(String metricName, CharacterFilter filter)
MetricGroup
"host-7.taskmanager-2.window_word_count.my-mapper.metricName"
.getMetricIdentifier
in interface MetricGroup
getMetricIdentifier
in class ProxyMetricGroup<P extends AbstractMetricGroup<?>>
metricName
- metric namefilter
- character filter which is applied to the scope components if not null.public String getLogicalScope(CharacterFilter filter)
public String getLogicalScope(CharacterFilter filter, char delimiter)
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.