public class JobManagerOperatorMetricGroup extends ComponentMetricGroup<JobManagerJobMetricGroup>
MetricGroup
representing everything belonging to the
components running on the JobManager of an Operator.AbstractMetricGroup.ChildType
LOG, parent, queryServiceScopeInfo, registry, variables
Constructor and Description |
---|
JobManagerOperatorMetricGroup(MetricRegistry registry,
JobManagerJobMetricGroup parent,
AbstractID vertexId,
String taskName,
OperatorID operatorID,
String operatorName) |
Modifier and Type | Method and Description |
---|---|
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.JobManagerOperatorQueryScopeInfo |
createQueryServiceMetricInfo(CharacterFilter filter)
Creates the metric query service scope for this group.
|
protected String |
getGroupName(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 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.
|
addGroup, addGroup, addMetric, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meter
public JobManagerOperatorMetricGroup(MetricRegistry registry, JobManagerJobMetricGroup parent, AbstractID vertexId, String taskName, OperatorID operatorID, String operatorName)
protected String getGroupName(CharacterFilter filter)
AbstractMetricGroup
getGroupName
in class AbstractMetricGroup<JobManagerJobMetricGroup>
filter
- character filter which is applied to the nameprotected QueryScopeInfo.JobManagerOperatorQueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter)
AbstractMetricGroup
createQueryServiceMetricInfo
in class AbstractMetricGroup<JobManagerJobMetricGroup>
filter
- character filterprotected void putVariables(Map<String,String> variables)
AbstractMetricGroup
AbstractMetricGroup
and their associated values
into the map.putVariables
in class AbstractMetricGroup<JobManagerJobMetricGroup>
variables
- map to enter variables and their values intopublic void close()
ComponentMetricGroup
AbstractMetricGroup
), plus closing and removing all dedicated component subgroups.close
in class ComponentMetricGroup<JobManagerJobMetricGroup>
protected Iterable<? extends ComponentMetricGroup> subComponents()
ComponentMetricGroup
subComponents
in class ComponentMetricGroup<JobManagerJobMetricGroup>
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.