Class SlotManagerMetricGroup
- java.lang.Object
-
- org.apache.flink.runtime.metrics.groups.AbstractMetricGroup<AbstractMetricGroup<?>>
-
- org.apache.flink.runtime.metrics.groups.SlotManagerMetricGroup
-
- All Implemented Interfaces:
MetricGroup
- Direct Known Subclasses:
UnregisteredMetricGroups.UnregisteredSlotManagerMetricGroup
public class SlotManagerMetricGroup extends AbstractMetricGroup<AbstractMetricGroup<?>>
Metric group which is used by theSlotManager
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 SlotManagerMetricGroup
create(MetricRegistry metricRegistry, String hostname)
protected QueryScopeInfo
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 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 SlotManagerMetricGroup create(MetricRegistry metricRegistry, String hostname)
-
getGroupName
protected final String getGroupName(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(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
-
-