public interface ResourceTracker
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all state from the tracker.
|
Collection<ResourceRequirement> |
getAcquiredResources(org.apache.flink.api.common.JobID jobId)
Returns a collection of
ResourceRequirements that describe which resources have been
assigned to a job. |
Map<org.apache.flink.api.common.JobID,Collection<ResourceRequirement>> |
getMissingResources()
Returns a collection of
ResourceRequirements that describe which resources the
corresponding job is missing. |
boolean |
isRequirementEmpty(org.apache.flink.api.common.JobID jobId)
Returns whether the
ResourceRequirement of the given job is empty. |
void |
notifyAcquiredResource(org.apache.flink.api.common.JobID jobId,
ResourceProfile resourceProfile)
Notifies the tracker about the acquisition of a resource with the given resource profile, for
the given job.
|
void |
notifyLostResource(org.apache.flink.api.common.JobID jobId,
ResourceProfile resourceProfile)
Notifies the tracker about the loss of a resource with the given resource profile, for the
given job.
|
void |
notifyResourceRequirements(org.apache.flink.api.common.JobID jobId,
Collection<ResourceRequirement> resourceRequirements)
Notifies the tracker about a new or updated
ResourceRequirements. |
void notifyResourceRequirements(org.apache.flink.api.common.JobID jobId,
Collection<ResourceRequirement> resourceRequirements)
ResourceRequirements.jobId - the job that the resource requirements belongs toresourceRequirements - new resource requirementsvoid notifyAcquiredResource(org.apache.flink.api.common.JobID jobId,
ResourceProfile resourceProfile)
jobId - the job that acquired the resourceresourceProfile - profile of the resourcevoid notifyLostResource(org.apache.flink.api.common.JobID jobId,
ResourceProfile resourceProfile)
jobId - the job that lost the resourceresourceProfile - profile of the resourceMap<org.apache.flink.api.common.JobID,Collection<ResourceRequirement>> getMissingResources()
ResourceRequirements that describe which resources the
corresponding job is missing.Collection<ResourceRequirement> getAcquiredResources(org.apache.flink.api.common.JobID jobId)
ResourceRequirements that describe which resources have been
assigned to a job.jobId - job IDboolean isRequirementEmpty(org.apache.flink.api.common.JobID jobId)
ResourceRequirement of the given job is empty.jobId - job IDResourceRequirement of the given job is emptyvoid clear()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.