Interface SlotSelectionStrategy
-
- All Known Implementing Classes:
LocationPreferenceSlotSelectionStrategy,PreviousAllocationSlotSelectionStrategy
public interface SlotSelectionStrategyInterface for slot selection strategies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSlotSelectionStrategy.SlotInfoAndLocality
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<SlotSelectionStrategy.SlotInfoAndLocality>selectBestSlotForProfile(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 Detail
-
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.
-
-