@Internal public class TaskMetricGroup extends ComponentMetricGroup<TaskManagerJobMetricGroup>
MetricGroup representing a Flink runtime Task.
Contains extra logic for adding operators.
| Modifier and Type | Field and Description |
|---|---|
protected int |
subtaskIndex |
protected AbstractID |
vertexId |
parent, queryServiceScopeInfo, registry, variables| Constructor and Description |
|---|
TaskMetricGroup(MetricRegistry registry,
TaskManagerJobMetricGroup parent,
AbstractID vertexId,
AbstractID executionId,
String taskName,
int subtaskIndex,
int attemptNumber) |
| Modifier and Type | Method and Description |
|---|---|
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(org.apache.flink.metrics.CharacterFilter filter)
Creates the metric query service scope for this group.
|
AbstractID |
executionId() |
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".
|
TaskIOMetricGroup |
getIOMetricGroup()
Returns the TaskIOMetricGroup for this task.
|
TaskManagerJobMetricGroup |
parent() |
protected void |
putVariables(Map<String,String> variables)
Enters all variables specific to this ComponentMetricGroup 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() |
getAllVariablesaddGroup, addGroup, addMetric, counter, counter, counter, counter, gauge, gauge, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, histogram, isClosed, meter, meter@Nullable protected final AbstractID vertexId
protected final int subtaskIndex
public TaskMetricGroup(MetricRegistry registry, TaskManagerJobMetricGroup parent, @Nullable AbstractID 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(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupcreateQueryServiceMetricInfo in class AbstractMetricGroup<TaskManagerJobMetricGroup>filter - character filterpublic OperatorMetricGroup addOperator(String name)
public void close()
ComponentMetricGroupAbstractMetricGroup), plus closing and removing all dedicated
component subgroups.close in class ComponentMetricGroup<TaskManagerJobMetricGroup>protected void putVariables(Map<String,String> variables)
ComponentMetricGroupputVariables in class ComponentMetricGroup<TaskManagerJobMetricGroup>variables - map to enter variables and their values intoprotected Iterable<? extends ComponentMetricGroup> subComponents()
ComponentMetricGroupsubComponents in class ComponentMetricGroup<TaskManagerJobMetricGroup>protected String getGroupName(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupgetGroupName in class AbstractMetricGroup<TaskManagerJobMetricGroup>filter - character filter which is applied to the nameCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.