Class JobMetricGroup<C extends ComponentMetricGroup<C>>
java.lang.Object
org.apache.flink.runtime.metrics.groups.AbstractMetricGroup<P>
org.apache.flink.runtime.metrics.groups.ComponentMetricGroup<C>
org.apache.flink.runtime.metrics.groups.JobMetricGroup<C>
- Type Parameters:
C- The type of the parent ComponentMetricGroup.
- All Implemented Interfaces:
org.apache.flink.metrics.MetricGroup
- Direct Known Subclasses:
JobManagerJobMetricGroup,TaskManagerJobMetricGroup
@Internal
public abstract class JobMetricGroup<C extends ComponentMetricGroup<C>>
extends ComponentMetricGroup<C>
Special abstract
MetricGroup representing everything belonging
to a specific job.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
AbstractMetricGroup.ChildType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.flink.api.common.JobIDThe ID of the job represented by this metrics group.protected final StringThe name of the job represented by this metrics group.Fields inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
LOG, parent, queryServiceScopeInfo, registry, variables -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJobMetricGroup(MetricRegistry registry, C parent, org.apache.flink.api.common.JobID jobId, String jobName, String[] scope) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpan(org.apache.flink.traces.SpanBuilder spanBuilder) protected QueryScopeInfo.JobQueryScopeInfocreateQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter) Creates the metric query service scope for this group.protected StringgetGroupName(org.apache.flink.metrics.CharacterFilter filter) Returns the name for this group, meaning what kind of entity it represents, for example "taskmanager".org.apache.flink.api.common.JobIDjobId()jobName()protected voidputVariables(Map<String, String> variables) Enters all variables specific to thisAbstractMetricGroupand their associated values into the map.Methods inherited from class org.apache.flink.runtime.metrics.groups.ComponentMetricGroup
close, subComponentsMethods inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
addGroup, addGroup, addMetric, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.metrics.MetricGroup
addGroup, counter, counter, gauge, histogram, meter
-
Field Details
-
jobId
protected final org.apache.flink.api.common.JobID jobIdThe ID of the job represented by this metrics group. -
jobName
The name of the job represented by this metrics group.
-
-
Constructor Details
-
JobMetricGroup
protected JobMetricGroup(MetricRegistry registry, C parent, org.apache.flink.api.common.JobID jobId, @Nullable String jobName, String[] scope)
-
-
Method Details
-
jobId
public org.apache.flink.api.common.JobID jobId() -
jobName
-
createQueryServiceMetricInfo
protected QueryScopeInfo.JobQueryScopeInfo createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter) Description copied from class:AbstractMetricGroupCreates the metric query service scope for this group.- Specified by:
createQueryServiceMetricInfoin classAbstractMetricGroup<C extends ComponentMetricGroup<C>>- Parameters:
filter- character filter- Returns:
- query service scope
-
addSpan
public void addSpan(org.apache.flink.traces.SpanBuilder spanBuilder) - Specified by:
addSpanin interfaceorg.apache.flink.metrics.MetricGroup- Overrides:
addSpanin classAbstractMetricGroup<C extends ComponentMetricGroup<C>>
-
putVariables
Description copied from class:AbstractMetricGroupEnters all variables specific to thisAbstractMetricGroupand their associated values into the map.- Overrides:
putVariablesin classAbstractMetricGroup<C extends ComponentMetricGroup<C>>- Parameters:
variables- map to enter variables and their values into
-
getGroupName
Description copied from class:AbstractMetricGroupReturns the name for this group, meaning what kind of entity it represents, for example "taskmanager".- Specified by:
getGroupNamein classAbstractMetricGroup<C extends ComponentMetricGroup<C>>- Parameters:
filter- character filter which is applied to the name- Returns:
- logical name for this group
-