@Public
public interface LogicalScopeProvider
ATTENTION: This interface is *not* meant for the long-term; it merely removes the need for reporters to depend on flink-runtime in order to access the logical scope. Once the logical scope is properly exposed this interface *will* be removed.
| Modifier and Type | Method and Description |
|---|---|
static LogicalScopeProvider |
castFrom(MetricGroup metricGroup)
Casts the given metric group to a
LogicalScopeProvider, if it implements the
interface. |
String |
getLogicalScope(CharacterFilter filter)
Returns the logical scope for the metric group, for example
"taskmanager.job.task",
with the given filter being applied to all scope components. |
String |
getLogicalScope(CharacterFilter filter,
char delimiter)
Returns the logical scope for the metric group, for example
"taskmanager.job.task",
with the given filter being applied to all scope components and the given delimiter being
used to concatenate scope components. |
MetricGroup |
getWrappedMetricGroup()
Returns the underlying metric group.
|
String getLogicalScope(CharacterFilter filter)
"taskmanager.job.task",
with the given filter being applied to all scope components.filter - filter to apply to all scope componentsString getLogicalScope(CharacterFilter filter, char delimiter)
"taskmanager.job.task",
with the given filter being applied to all scope components and the given delimiter being
used to concatenate scope components.filter - filter to apply to all scope componentsdelimiter - delimiter to use for concatenating scope componentsMetricGroup getWrappedMetricGroup()
static LogicalScopeProvider castFrom(MetricGroup metricGroup) throws IllegalStateException
LogicalScopeProvider, if it implements the
interface.metricGroup - metric group to castIllegalStateException - if the metric group did not implement the LogicalScopeProvider
interfaceCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.