Class ResourceManagerMetricGroup
- java.lang.Object
-
- org.apache.flink.runtime.metrics.groups.AbstractMetricGroup<AbstractMetricGroup<?>>
-
- org.apache.flink.runtime.metrics.groups.ResourceManagerMetricGroup
-
- All Implemented Interfaces:
org.apache.flink.metrics.MetricGroup
- Direct Known Subclasses:
UnregisteredMetricGroups.UnregisteredResourceManagerMetricGroup
public class ResourceManagerMetricGroup extends AbstractMetricGroup<AbstractMetricGroup<?>>
Metric group which is used by theResourceManager
to register metrics.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
AbstractMetricGroup.ChildType
-
-
Field Summary
Fields Modifier and Type Field Description protected String
hostname
-
Fields inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
LOG, parent, queryServiceScopeInfo, registry, variables
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceManagerMetricGroup
create(MetricRegistry metricRegistry, String hostname)
protected QueryScopeInfo
createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
Creates the metric query service scope for this group.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".protected void
putVariables(Map<String,String> variables)
Enters all variables specific to thisAbstractMetricGroup
and their associated values into the map.-
Methods inherited from class org.apache.flink.runtime.metrics.groups.AbstractMetricGroup
addGroup, addGroup, addMetric, addSpan, close, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meter
-
-
-
-
Field Detail
-
hostname
protected final String hostname
-
-
Method Detail
-
create
public static ResourceManagerMetricGroup create(MetricRegistry metricRegistry, String hostname)
-
getGroupName
protected final String getGroupName(org.apache.flink.metrics.CharacterFilter filter)
Description copied from class:AbstractMetricGroup
Returns the name for this group, meaning what kind of entity it represents, for example "taskmanager".- Specified by:
getGroupName
in classAbstractMetricGroup<AbstractMetricGroup<?>>
- Parameters:
filter
- character filter which is applied to the name- Returns:
- logical name for this group
-
putVariables
protected final void putVariables(Map<String,String> variables)
Description copied from class:AbstractMetricGroup
Enters all variables specific to thisAbstractMetricGroup
and their associated values into the map.- Overrides:
putVariables
in classAbstractMetricGroup<AbstractMetricGroup<?>>
- Parameters:
variables
- map to enter variables and their values into
-
createQueryServiceMetricInfo
protected final QueryScopeInfo createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
Description copied from class:AbstractMetricGroup
Creates the metric query service scope for this group.- Specified by:
createQueryServiceMetricInfo
in classAbstractMetricGroup<AbstractMetricGroup<?>>
- Parameters:
filter
- character filter- Returns:
- query service scope
-
-