public enum PreferredAllocationRequestSlotMatchingStrategy extends Enum<PreferredAllocationRequestSlotMatchingStrategy> implements RequestSlotMatchingStrategy
RequestSlotMatchingStrategy that takes the preferred allocations into account. The
strategy will try to fulfill the preferred allocations and if this is not possible, then it will
fall back to SimpleRequestSlotMatchingStrategy.RequestSlotMatchingStrategy.RequestSlotMatch| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Collection<RequestSlotMatchingStrategy.RequestSlotMatch> |
matchRequestsAndSlots(Collection<? extends PhysicalSlot> slots,
Collection<org.apache.flink.runtime.jobmaster.slotpool.PendingRequest> pendingRequests)
Match the given slots with the given collection of pending requests.
|
String |
toString() |
static PreferredAllocationRequestSlotMatchingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreferredAllocationRequestSlotMatchingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreferredAllocationRequestSlotMatchingStrategy INSTANCE
public static PreferredAllocationRequestSlotMatchingStrategy[] values()
for (PreferredAllocationRequestSlotMatchingStrategy c : PreferredAllocationRequestSlotMatchingStrategy.values()) System.out.println(c);
public static PreferredAllocationRequestSlotMatchingStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Collection<RequestSlotMatchingStrategy.RequestSlotMatch> matchRequestsAndSlots(Collection<? extends PhysicalSlot> slots, Collection<org.apache.flink.runtime.jobmaster.slotpool.PendingRequest> pendingRequests)
RequestSlotMatchingStrategymatchRequestsAndSlots in interface RequestSlotMatchingStrategyslots - slots to matchpendingRequests - slot requests to matchpublic String toString()
toString in class Enum<PreferredAllocationRequestSlotMatchingStrategy>Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.