public enum SimpleRequestSlotMatchingStrategy extends Enum<SimpleRequestSlotMatchingStrategy> implements RequestSlotMatchingStrategy
RequestSlotMatchingStrategy that matches the pending
requests in order as long as the resource profile can be fulfilled.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 SimpleRequestSlotMatchingStrategy |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SimpleRequestSlotMatchingStrategy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SimpleRequestSlotMatchingStrategy INSTANCE
public static SimpleRequestSlotMatchingStrategy[] values()
for (SimpleRequestSlotMatchingStrategy c : SimpleRequestSlotMatchingStrategy.values()) System.out.println(c);
public static SimpleRequestSlotMatchingStrategy 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–2022 The Apache Software Foundation. All rights reserved.