Class JobManagerOperatorMetricGroup
- java.lang.Object
-
- org.apache.flink.runtime.metrics.groups.AbstractMetricGroup<P>
-
- org.apache.flink.runtime.metrics.groups.ComponentMetricGroup<JobManagerJobMetricGroup>
-
- org.apache.flink.runtime.metrics.groups.JobManagerOperatorMetricGroup
-
- All Implemented Interfaces:
org.apache.flink.metrics.MetricGroup
- Direct Known Subclasses:
UnregisteredMetricGroups.UnregisteredJobMangerOperatorMetricGroup
public class JobManagerOperatorMetricGroup extends ComponentMetricGroup<JobManagerJobMetricGroup>
SpecialMetricGroup
representing everything belonging to the components running on the JobManager of 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
-
-
Constructor Summary
Constructors Constructor Description JobManagerOperatorMetricGroup(MetricRegistry registry, JobManagerJobMetricGroup parent, org.apache.flink.util.AbstractID vertexId, String taskName, OperatorID operatorID, String operatorName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the component group by removing and closing all metrics and subgroups (inherited fromAbstractMetricGroup
), plus closing and removing all dedicated component subgroups.protected QueryScopeInfo.JobManagerOperatorQueryScopeInfo
createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
Creates the metric query service scope for this group.protected String
getGroupName(org.apache.flink.metrics.CharacterFilter filter)
Returns the name for this group, meaning what kind of entity it represents, for example "taskmanager".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.AbstractMetricGroup
addGroup, addGroup, addMetric, addSpan, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meter
-
-
-
-
Constructor Detail
-
JobManagerOperatorMetricGroup
public JobManagerOperatorMetricGroup(MetricRegistry registry, JobManagerJobMetricGroup parent, org.apache.flink.util.AbstractID vertexId, String taskName, OperatorID operatorID, String operatorName)
-
-
Method Detail
-
getGroupName
protected String getGroupName(org.apache.flink.metrics.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<JobManagerJobMetricGroup>
- Parameters:
filter
- character filter which is applied to the name- Returns:
- logical name for this group
-
createQueryServiceMetricInfo
protected QueryScopeInfo.JobManagerOperatorQueryScopeInfo createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
Description copied from class:AbstractMetricGroup
Creates the metric query service scope for this group.- Specified by:
createQueryServiceMetricInfo
in classAbstractMetricGroup<JobManagerJobMetricGroup>
- Parameters:
filter
- character filter- Returns:
- query service scope
-
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<JobManagerJobMetricGroup>
- Parameters:
variables
- map to enter variables and their values into
-
close
public void close()
Description copied from class:ComponentMetricGroup
Closes the component group by removing and closing all metrics and subgroups (inherited fromAbstractMetricGroup
), plus closing and removing all dedicated component subgroups.- Overrides:
close
in classComponentMetricGroup<JobManagerJobMetricGroup>
-
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<JobManagerJobMetricGroup>
- Returns:
- All component metric groups that are contained in this component metric group.
-
-