Class InternalOperatorMetricGroup
- java.lang.Object
-
- org.apache.flink.runtime.metrics.groups.AbstractMetricGroup<P>
-
- org.apache.flink.runtime.metrics.groups.ComponentMetricGroup<TaskMetricGroup>
-
- org.apache.flink.runtime.metrics.groups.InternalOperatorMetricGroup
-
- All Implemented Interfaces:
OperatorMetricGroup
,MetricGroup
- Direct Known Subclasses:
UnregisteredMetricGroups.UnregisteredOperatorMetricGroup
@Internal public class InternalOperatorMetricGroup extends ComponentMetricGroup<TaskMetricGroup> implements OperatorMetricGroup
SpecialMetricGroup
representing an Operator.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
AbstractMetricGroup.ChildType
-
-
Field Summary
-
Fields inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
LOG, parent, queryServiceScopeInfo, registry, variables
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryScopeInfo.OperatorQueryScopeInfo
createQueryServiceMetricInfo(CharacterFilter filter)
Creates the metric query service scope for this group.protected String
getGroupName(CharacterFilter filter)
Returns the name for this group, meaning what kind of entity it represents, for example "taskmanager".InternalOperatorIOMetricGroup
getIOMetricGroup()
Returns the OperatorIOMetricGroup for this operator.TaskIOMetricGroup
getTaskIOMetricGroup()
MetricGroup
getTaskMetricGroup()
protected void
putVariables(Map<String,String> variables)
Enters all variables specific to thisAbstractMetricGroup
and their associated values into the map.protected Iterable<? extends ComponentMetricGroup>
subComponents()
Gets all component metric groups that are contained in this component metric group.-
Methods inherited from class org.apache.flink.runtime.metrics.groups.ComponentMetricGroup
close
-
Methods inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
addGroup, addGroup, addMetric, addSpan, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.metrics.MetricGroup
addGroup, addGroup, addGroup, addSpan, counter, counter, counter, counter, gauge, gauge, getAllVariables, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, histogram, meter, meter
-
-
-
-
Method Detail
-
getTaskIOMetricGroup
public final TaskIOMetricGroup getTaskIOMetricGroup()
-
getTaskMetricGroup
public final MetricGroup getTaskMetricGroup()
-
createQueryServiceMetricInfo
protected QueryScopeInfo.OperatorQueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter)
Description copied from class:AbstractMetricGroup
Creates the metric query service scope for this group.- Specified by:
createQueryServiceMetricInfo
in classAbstractMetricGroup<TaskMetricGroup>
- Parameters:
filter
- character filter- Returns:
- query service scope
-
getIOMetricGroup
public InternalOperatorIOMetricGroup getIOMetricGroup()
Returns the OperatorIOMetricGroup for this operator.- Specified by:
getIOMetricGroup
in interfaceOperatorMetricGroup
- Returns:
- OperatorIOMetricGroup for this operator.
-
putVariables
protected void putVariables(Map<String,String> variables)
Description copied from class:AbstractMetricGroup
Enters all variables specific to thisAbstractMetricGroup
and their associated values into the map.- Overrides:
putVariables
in classAbstractMetricGroup<TaskMetricGroup>
- Parameters:
variables
- map to enter variables and their values into
-
subComponents
protected Iterable<? extends ComponentMetricGroup> subComponents()
Description copied from class:ComponentMetricGroup
Gets all component metric groups that are contained in this component metric group.- Specified by:
subComponents
in classComponentMetricGroup<TaskMetricGroup>
- Returns:
- All component metric groups that are contained in this component metric group.
-
getGroupName
protected String getGroupName(CharacterFilter filter)
Description copied from class:AbstractMetricGroup
Returns the name for this group, meaning what kind of entity it represents, for example "taskmanager".- Specified by:
getGroupName
in classAbstractMetricGroup<TaskMetricGroup>
- Parameters:
filter
- character filter which is applied to the name- Returns:
- logical name for this group
-
-