@Internal public class TaskMetricGroup extends ComponentMetricGroup<TaskManagerJobMetricGroup>
MetricGroup
representing a Flink runtime Task.
Contains extra logic for adding operators.
AbstractMetricGroup.ChildType
Modifier and Type | Field and Description |
---|---|
protected int |
subtaskIndex |
protected JobVertexID |
vertexId |
LOG, parent, queryServiceScopeInfo, registry, variables
Constructor and Description |
---|
TaskMetricGroup(MetricRegistry registry,
TaskManagerJobMetricGroup parent,
JobVertexID vertexId,
AbstractID executionId,
String taskName,
int subtaskIndex,
int attemptNumber) |
Modifier and Type | Method and Description |
---|---|
OperatorMetricGroup |
addOperator(OperatorID operatorID,
String name) |
OperatorMetricGroup |
addOperator(String name) |
int |
attemptNumber() |
void |
close()
Closes the component group by removing and closing all metrics and subgroups
(inherited from
AbstractMetricGroup ), plus closing and removing all dedicated
component subgroups. |
protected QueryScopeInfo.TaskQueryScopeInfo |
createQueryServiceMetricInfo(CharacterFilter filter)
Creates the metric query service scope for this group.
|
AbstractID |
executionId() |
protected String |
getGroupName(CharacterFilter filter)
Returns the name for this group, meaning what kind of entity it represents, for example "taskmanager".
|
TaskIOMetricGroup |
getIOMetricGroup()
Returns the TaskIOMetricGroup for this task.
|
TaskManagerJobMetricGroup |
parent() |
protected void |
putVariables(Map<String,String> variables)
Enters all variables specific to this
AbstractMetricGroup 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.
|
int |
subtaskIndex() |
String |
taskName() |
AbstractID |
vertexId() |
addGroup, addGroup, addGroup, addMetric, counter, counter, counter, counter, createChildGroup, gauge, gauge, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, histogram, isClosed, meter, meter
@Nullable protected final JobVertexID vertexId
protected final int subtaskIndex
public TaskMetricGroup(MetricRegistry registry, TaskManagerJobMetricGroup parent, @Nullable JobVertexID vertexId, AbstractID executionId, @Nullable String taskName, int subtaskIndex, int attemptNumber)
public final TaskManagerJobMetricGroup parent()
public AbstractID executionId()
@Nullable public AbstractID vertexId()
public int subtaskIndex()
public int attemptNumber()
public TaskIOMetricGroup getIOMetricGroup()
protected QueryScopeInfo.TaskQueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter)
AbstractMetricGroup
createQueryServiceMetricInfo
in class AbstractMetricGroup<TaskManagerJobMetricGroup>
filter
- character filterpublic OperatorMetricGroup addOperator(String name)
public OperatorMetricGroup addOperator(OperatorID operatorID, String name)
public void close()
ComponentMetricGroup
AbstractMetricGroup
), plus closing and removing all dedicated
component subgroups.close
in class ComponentMetricGroup<TaskManagerJobMetricGroup>
protected void putVariables(Map<String,String> variables)
AbstractMetricGroup
AbstractMetricGroup
and their associated values into the map.putVariables
in class AbstractMetricGroup<TaskManagerJobMetricGroup>
variables
- map to enter variables and their values intoprotected Iterable<? extends ComponentMetricGroup> subComponents()
ComponentMetricGroup
subComponents
in class ComponentMetricGroup<TaskManagerJobMetricGroup>
protected String getGroupName(CharacterFilter filter)
AbstractMetricGroup
getGroupName
in class AbstractMetricGroup<TaskManagerJobMetricGroup>
filter
- character filter which is applied to the nameCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.