public class JobManagerMetricGroup extends ComponentMetricGroup<JobManagerMetricGroup> implements LocallyCleanableResource
MetricGroup representing a JobManager.
Contains extra logic for adding jobs with tasks, and removing jobs when they do not contain tasks any more
AbstractMetricGroup.ChildTypeLOG, parent, queryServiceScopeInfo, registry, variables| 限定符和类型 | 方法和说明 |
|---|---|
JobManagerJobMetricGroup |
addJob(org.apache.flink.api.common.JobID jobId,
String jobName) |
static JobManagerMetricGroup |
createJobManagerMetricGroup(MetricRegistry metricRegistry,
String hostname) |
protected QueryScopeInfo.JobManagerQueryScopeInfo |
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".
|
String |
hostname() |
CompletableFuture<Void> |
localCleanupAsync(org.apache.flink.api.common.JobID jobId,
Executor ignoredExecutor)
localCleanupAsync is expected to be called from the main thread. |
int |
numRegisteredJobMetricGroups() |
protected void |
putVariables(Map<String,String> variables)
Enters all variables specific to this
AbstractMetricGroup and their associated values
into the map. |
protected Iterable<? extends ComponentMetricGroup> |
subComponents()
Gets all component metric groups that are contained in this component metric group.
|
closeaddGroup, addGroup, addMetric, counter, counter, createChildGroup, createLogicalScope, gauge, getAllVariables, getAllVariables, getLogicalScope, getLogicalScope, getMetricIdentifier, getMetricIdentifier, getMetricIdentifier, getQueryServiceMetricInfo, getScopeComponents, histogram, isClosed, meterpublic static JobManagerMetricGroup createJobManagerMetricGroup(MetricRegistry metricRegistry, String hostname)
public String hostname()
protected QueryScopeInfo.JobManagerQueryScopeInfo createQueryServiceMetricInfo(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupcreateQueryServiceMetricInfo 在类中 AbstractMetricGroup<JobManagerMetricGroup>filter - character filterpublic JobManagerJobMetricGroup addJob(org.apache.flink.api.common.JobID jobId, String jobName)
public CompletableFuture<Void> localCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor ignoredExecutor)
LocallyCleanableResourcelocalCleanupAsync is expected to be called from the main thread. Heavy IO tasks
should be outsourced into the passed cleanupExecutor. Thread-safety must be ensured.localCleanupAsync 在接口中 LocallyCleanableResourcejobId - The JobID of the job for which the local data should be cleaned up.ignoredExecutor - The fallback executor for IO-heavy operations.public int numRegisteredJobMetricGroups()
protected void putVariables(Map<String,String> variables)
AbstractMetricGroupAbstractMetricGroup and their associated values
into the map.putVariables 在类中 AbstractMetricGroup<JobManagerMetricGroup>variables - map to enter variables and their values intoprotected Iterable<? extends ComponentMetricGroup> subComponents()
ComponentMetricGroupsubComponents 在类中 ComponentMetricGroup<JobManagerMetricGroup>protected String getGroupName(org.apache.flink.metrics.CharacterFilter filter)
AbstractMetricGroupgetGroupName 在类中 AbstractMetricGroup<JobManagerMetricGroup>filter - character filter which is applied to the nameCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.