C
- The type of the parent ComponentMetricGroup.@Internal public abstract class JobMetricGroup<C extends ComponentMetricGroup<C>> extends ComponentMetricGroup<C>
MetricGroup
representing everything belonging to
a specific job.AbstractMetricGroup.ChildType
Modifier and Type | Field and Description |
---|---|
protected JobID |
jobId
The ID of the job represented by this metrics group.
|
protected String |
jobName
The name of the job represented by this metrics group.
|
LOG, parent, queryServiceScopeInfo, registry, variables
Modifier | Constructor and Description |
---|---|
protected |
JobMetricGroup(MetricRegistry registry,
C parent,
JobID jobId,
String jobName,
String[] scope) |
Modifier and Type | Method and Description |
---|---|
protected QueryScopeInfo.JobQueryScopeInfo |
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".
|
JobID |
jobId() |
String |
jobName() |
protected void |
putVariables(Map<String,String> variables)
Enters all variables specific to this
AbstractMetricGroup and their associated values into the map. |
close, subComponents
addGroup, addGroup, addGroup, addMetric, counter, counter, counter, counter, createChildGroup, gauge, gauge, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, histogram, isClosed, meter, meter
protected final JobID jobId
public JobID jobId()
protected QueryScopeInfo.JobQueryScopeInfo createQueryServiceMetricInfo(CharacterFilter filter)
AbstractMetricGroup
createQueryServiceMetricInfo
in class AbstractMetricGroup<C extends ComponentMetricGroup<C>>
filter
- character filterprotected void putVariables(Map<String,String> variables)
AbstractMetricGroup
AbstractMetricGroup
and their associated values into the map.putVariables
in class AbstractMetricGroup<C extends ComponentMetricGroup<C>>
variables
- map to enter variables and their values intoprotected String getGroupName(CharacterFilter filter)
AbstractMetricGroup
getGroupName
in class AbstractMetricGroup<C extends ComponentMetricGroup<C>>
filter
- character filter which is applied to the nameCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.