public interface SlotSelectionStrategy
Scheduler.| Modifier and Type | Interface and Description |
|---|---|
static class |
SlotSelectionStrategy.SlotInfoAndLocality
|
| Modifier and Type | Method and Description |
|---|---|
Optional<SlotSelectionStrategy.SlotInfoAndLocality> |
selectBestSlotForProfile(Collection<? extends SlotInfo> availableSlots,
SlotProfile slotProfile)
Selects the best
SlotInfo w.r.t. |
Optional<SlotSelectionStrategy.SlotInfoAndLocality> selectBestSlotForProfile(@Nonnull Collection<? extends SlotInfo> 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 to select from.slotProfile - a slot profile, describing requirements for the slot selection.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.