Package org.apache.flink.runtime.slots
Interface RequirementMatcher
-
- All Known Implementing Classes:
DefaultRequirementMatcher
public interface RequirementMatcher
A matcher for resource profiles to requirements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<ResourceProfile>
match(ResourceProfile resourceProfile, ResourceCounter totalRequirements, Function<ResourceProfile,Integer> numAssignedResourcesLookup)
Attempts to match the given resource profile with one of the given requirements.
-
-
-
Method Detail
-
match
Optional<ResourceProfile> match(ResourceProfile resourceProfile, ResourceCounter totalRequirements, Function<ResourceProfile,Integer> numAssignedResourcesLookup)
Attempts to match the given resource profile with one of the given requirements.- Parameters:
resourceProfile
- resource profile to matchtotalRequirements
- the total requirementsnumAssignedResourcesLookup
- a lookup for how many resources have already been assigned to a requirement- Returns:
- matching requirement profile, if one exists
-
-