Interface SlotSelectionStrategy

All Known Implementing Classes:
LocationPreferenceSlotSelectionStrategy, PreviousAllocationSlotSelectionStrategy

public interface SlotSelectionStrategy
Interface for slot selection strategies.
  • Method Details

    • selectBestSlotForProfile

      Optional<SlotSelectionStrategy.SlotInfoAndLocality> selectBestSlotForProfile(@Nonnull FreeSlotTracker freeSlotTracker, @Nonnull SlotProfile slotProfile)
      Selects the best SlotInfo w.r.t. a certain selection criterion from the provided list of available slots and considering the given SlotProfile 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.