Class TaskManagerJobMetricGroup
- 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<TaskManagerMetricGroup>
-
- org.apache.flink.runtime.metrics.groups.TaskManagerJobMetricGroup
-
- All Implemented Interfaces:
MetricGroup
- Direct Known Subclasses:
UnregisteredMetricGroups.UnregisteredTaskManagerJobMetricGroup
@Internal public class TaskManagerJobMetricGroup extends JobMetricGroup<TaskManagerMetricGroup>
SpecialMetricGroup
representing everything belonging to a specific job, running on the TaskManager.Contains extra logic for adding Tasks (
TaskMetricGroup
).
-
-
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.JobMetricGroup
jobId, jobName
-
Fields inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
LOG, parent, queryServiceScopeInfo, registry, variables
-
-
Constructor Summary
Constructors Constructor Description TaskManagerJobMetricGroup(MetricRegistry registry, TaskManagerMetricGroup parent, JobID jobId, String jobName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskMetricGroup
addTask(ExecutionAttemptID executionAttemptID, String taskName)
TaskManagerMetricGroup
parent()
void
removeTaskMetricGroup(ExecutionAttemptID executionId)
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.JobMetricGroup
addSpan, createQueryServiceMetricInfo, getGroupName, jobId, jobName, putVariables
-
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, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meter
-
-
-
-
Constructor Detail
-
TaskManagerJobMetricGroup
public TaskManagerJobMetricGroup(MetricRegistry registry, TaskManagerMetricGroup parent, JobID jobId, @Nullable String jobName)
-
-
Method Detail
-
parent
public final TaskManagerMetricGroup parent()
-
addTask
public TaskMetricGroup addTask(ExecutionAttemptID executionAttemptID, String taskName)
-
removeTaskMetricGroup
public void removeTaskMetricGroup(ExecutionAttemptID executionId)
-
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<TaskManagerMetricGroup>
- Returns:
- All component metric groups that are contained in this component metric group.
-
-