Interface SlotSelectionStrategy
- All Known Implementing Classes:
LocationPreferenceSlotSelectionStrategy,PreviousAllocationSlotSelectionStrategy
public interface SlotSelectionStrategy
Interface for slot selection strategies.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class -
Method Summary
Modifier and TypeMethodDescriptionselectBestSlotForProfile(FreeSlotTracker freeSlotTracker, SlotProfile slotProfile) Selects the bestSlotInfow.r.t. a certain selection criterion from the provided list of available slots and considering the givenSlotProfilethat describes the requirements.
-
Method Details
-
selectBestSlotForProfile
Optional<SlotSelectionStrategy.SlotInfoAndLocality> selectBestSlotForProfile(@Nonnull FreeSlotTracker freeSlotTracker, @Nonnull SlotProfile slotProfile) Selects the bestSlotInfow.r.t. a certain selection criterion from the provided list of available slots and considering the givenSlotProfilethat describes the requirements.- Parameters:
freeSlotTracker- a list of the available slots together with their remaining resources to select from.slotProfile- a slot profile, describing requirements for the slot selection.- Returns:
- the selected slot info with the corresponding locality hint.
-