Class GenericMetricGroup
- java.lang.Object
-
- org.apache.flink.runtime.metrics.groups.AbstractMetricGroup<AbstractMetricGroup<?>>
-
- org.apache.flink.runtime.metrics.groups.GenericMetricGroup
-
- All Implemented Interfaces:
org.apache.flink.metrics.MetricGroup
- Direct Known Subclasses:
GenericKeyMetricGroup,GenericValueMetricGroup
@Internal public class GenericMetricGroup extends AbstractMetricGroup<AbstractMetricGroup<?>>
A simple namedMetricGroupthat is used to hold subgroups of metrics.
-
-
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.AbstractMetricGroup
LOG, parent, queryServiceScopeInfo, registry, variables
-
-
Constructor Summary
Constructors Constructor Description GenericMetricGroup(MetricRegistry registry, AbstractMetricGroup parent, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryScopeInfocreateQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)Creates the metric query service scope for this group.protected StringgetGroupName(org.apache.flink.metrics.CharacterFilter filter)Returns the name for this group, meaning what kind of entity it represents, for example "taskmanager".-
Methods inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
addEvent, addGroup, addGroup, addMetric, addSpan, close, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meter, putVariables
-
-
-
-
Constructor Detail
-
GenericMetricGroup
public GenericMetricGroup(MetricRegistry registry, AbstractMetricGroup parent, String name)
-
-
Method Detail
-
createQueryServiceMetricInfo
protected QueryScopeInfo createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
Description copied from class:AbstractMetricGroupCreates the metric query service scope for this group.- Specified by:
createQueryServiceMetricInfoin classAbstractMetricGroup<AbstractMetricGroup<?>>- Parameters:
filter- character filter- Returns:
- query service scope
-
getGroupName
protected String getGroupName(org.apache.flink.metrics.CharacterFilter filter)
Description copied from class:AbstractMetricGroupReturns the name for this group, meaning what kind of entity it represents, for example "taskmanager".- Specified by:
getGroupNamein classAbstractMetricGroup<AbstractMetricGroup<?>>- Parameters:
filter- character filter which is applied to the name- Returns:
- logical name for this group
-
-