public interface SlotSelectionStrategy
Modifier and Type | Interface and Description |
---|---|
static class |
SlotSelectionStrategy.SlotInfoAndLocality
|
static class |
SlotSelectionStrategy.SlotInfoAndResources
This class is a value type that combines a
SlotInfo with its remaining ResourceProfile . |
Modifier and Type | Method and Description |
---|---|
Optional<SlotSelectionStrategy.SlotInfoAndLocality> |
selectBestSlotForProfile(Collection<SlotSelectionStrategy.SlotInfoAndResources> availableSlots,
SlotProfile slotProfile)
Selects the best
SlotInfo w.r.t. |
Optional<SlotSelectionStrategy.SlotInfoAndLocality> selectBestSlotForProfile(@Nonnull Collection<SlotSelectionStrategy.SlotInfoAndResources> availableSlots, @Nonnull SlotProfile slotProfile)
SlotInfo
w.r.t. a certain selection criterion from the provided list
of available slots and considering the given SlotProfile
that describes the
requirements.availableSlots
- a list of the available slots together with their remaining resources
to select from.slotProfile
- a slot profile, describing requirements for the slot selection.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.