Interface RequestSlotMatchingStrategy
- All Known Implementing Classes:
PreferredAllocationRequestSlotMatchingStrategy,SimpleRequestSlotMatchingStrategy
public interface RequestSlotMatchingStrategy
Strategy to match slot requests to slots.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classResult class representing matches. -
Method Summary
Modifier and TypeMethodDescriptionmatchRequestsAndSlots(Collection<? extends PhysicalSlot> slots, Collection<org.apache.flink.runtime.jobmaster.slotpool.PendingRequest> pendingRequests) Match the given slots with the given collection of pending requests.
-
Method Details
-
matchRequestsAndSlots
Collection<RequestSlotMatchingStrategy.RequestSlotMatch> matchRequestsAndSlots(Collection<? extends PhysicalSlot> slots, Collection<org.apache.flink.runtime.jobmaster.slotpool.PendingRequest> pendingRequests) Match the given slots with the given collection of pending requests.- Parameters:
slots- slots to matchpendingRequests- slot requests to match- Returns:
- resulting matches of this operation
-