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| 枚举常量和说明 |
|---|
INSTANCE |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static PreferredAllocationRequestSlotMatchingStrategy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Collection<RequestSlotMatchingStrategy.RequestSlotMatch> matchRequestsAndSlots(Collection<? extends PhysicalSlot> slots, Collection<org.apache.flink.runtime.jobmaster.slotpool.PendingRequest> pendingRequests)
RequestSlotMatchingStrategymatchRequestsAndSlots 在接口中 RequestSlotMatchingStrategyslots - slots to matchpendingRequests - slot requests to matchpublic String toString()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.