Interface SlotSelectionStrategy
-
- All Known Implementing Classes:
LocationPreferenceSlotSelectionStrategy
,PreviousAllocationSlotSelectionStrategy
public interface SlotSelectionStrategy
Interface for slot selection strategies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SlotSelectionStrategy.SlotInfoAndLocality
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<SlotSelectionStrategy.SlotInfoAndLocality>
selectBestSlotForProfile(FreeSlotTracker freeSlotTracker, SlotProfile slotProfile)
Selects the bestSlotInfo
w.r.t. a certain selection criterion from the provided list of available slots and considering the givenSlotProfile
that describes the requirements.
-
-
-
Method Detail
-
selectBestSlotForProfile
Optional<SlotSelectionStrategy.SlotInfoAndLocality> selectBestSlotForProfile(@Nonnull FreeSlotTracker freeSlotTracker, @Nonnull SlotProfile slotProfile)
Selects the bestSlotInfo
w.r.t. a certain selection criterion from the provided list of available slots and considering the givenSlotProfile
that 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.
-
-