public class JobManagerMetricGroup extends ComponentMetricGroup
MetricGroup
representing a JobManager.
Contains extra logic for adding jobs with tasks, and removing jobs when they do not contain tasks any more
registry
Constructor and Description |
---|
JobManagerMetricGroup(MetricRegistry registry,
JobManagerScopeFormat scopeFormat,
String hostname) |
JobManagerMetricGroup(MetricRegistry registry,
String hostname) |
Modifier and Type | Method and Description |
---|---|
JobManagerJobMetricGroup |
addJob(JobGraph job) |
String |
hostname() |
int |
numRegisteredJobMetricGroups() |
void |
removeJob(JobID jobId) |
protected Iterable<? extends ComponentMetricGroup> |
subComponents()
Gets all component metric groups that are contained in this component metric group.
|
close
addGroup, addGroup, addMetric, counter, counter, counter, counter, gauge, gauge, getMetricIdentifier, getMetricIdentifier, getScopeComponents, histogram, histogram, isClosed
public JobManagerMetricGroup(MetricRegistry registry, String hostname)
public JobManagerMetricGroup(MetricRegistry registry, JobManagerScopeFormat scopeFormat, String hostname)
public String hostname()
public JobManagerJobMetricGroup addJob(JobGraph job)
public void removeJob(JobID jobId)
public int numRegisteredJobMetricGroups()
protected Iterable<? extends ComponentMetricGroup> subComponents()
ComponentMetricGroup
subComponents
in class ComponentMetricGroup
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.