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 |
---|---|
void |
addSpan(SpanBuilder spanBuilder) |
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, addMetric, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, 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 filterpublic void addSpan(SpanBuilder spanBuilder)
addSpan
in interface MetricGroup
addSpan
in class AbstractMetricGroup<C extends ComponentMetricGroup<C>>
protected 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–2024 The Apache Software Foundation. All rights reserved.