@Internal public class OperatorMetricGroup extends ComponentMetricGroup<TaskMetricGroup>
MetricGroup
representing an Operator.LOG, parent, queryServiceScopeInfo, registry, variables
Constructor and Description |
---|
OperatorMetricGroup(MetricRegistry registry,
TaskMetricGroup parent,
OperatorID operatorID,
String operatorName) |
Modifier and Type | Method and Description |
---|---|
protected QueryScopeInfo.OperatorQueryScopeInfo |
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".
|
OperatorIOMetricGroup |
getIOMetricGroup()
Returns the OperatorIOMetricGroup for this operator.
|
TaskMetricGroup |
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.
|
close, getAllVariables
addGroup, addGroup, addMetric, counter, counter, counter, counter, gauge, gauge, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, histogram, isClosed, meter, meter
public OperatorMetricGroup(MetricRegistry registry, TaskMetricGroup parent, OperatorID operatorID, String operatorName)
public final TaskMetricGroup parent()
protected QueryScopeInfo.OperatorQueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter)
AbstractMetricGroup
createQueryServiceMetricInfo
in class AbstractMetricGroup<TaskMetricGroup>
filter
- character filterpublic OperatorIOMetricGroup getIOMetricGroup()
protected void putVariables(Map<String,String> variables)
ComponentMetricGroup
putVariables
in class ComponentMetricGroup<TaskMetricGroup>
variables
- map to enter variables and their values intoprotected Iterable<? extends ComponentMetricGroup> subComponents()
ComponentMetricGroup
subComponents
in class ComponentMetricGroup<TaskMetricGroup>
protected String getGroupName(CharacterFilter filter)
AbstractMetricGroup
getGroupName
in class AbstractMetricGroup<TaskMetricGroup>
filter
- character filter which is applied to the nameCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.