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
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 SimpleRequestSlotMatchingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleRequestSlotMatchingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- 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)
RequestSlotMatchingStrategy
matchRequestsAndSlots
in interface RequestSlotMatchingStrategy
slots
- slots to matchpendingRequests
- slot requests to matchpublic String toString()
toString
in class Enum<SimpleRequestSlotMatchingStrategy>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.