Enum TasksBalancedRequestSlotMatchingStrategy
- java.lang.Object
-
- java.lang.Enum<TasksBalancedRequestSlotMatchingStrategy>
-
- org.apache.flink.runtime.jobmaster.slotpool.TasksBalancedRequestSlotMatchingStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<TasksBalancedRequestSlotMatchingStrategy>,RequestSlotMatchingStrategy
public enum TasksBalancedRequestSlotMatchingStrategy extends Enum<TasksBalancedRequestSlotMatchingStrategy> implements RequestSlotMatchingStrategy
The tasks balanced based implementation ofRequestSlotMatchingStrategythat matches the pending requests for tasks balance at task-manager level.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.jobmaster.slotpool.RequestSlotMatchingStrategy
RequestSlotMatchingStrategy.RequestSlotMatch
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<RequestSlotMatchingStrategy.RequestSlotMatch>matchRequestsAndSlots(Collection<? extends PhysicalSlot> slots, Collection<org.apache.flink.runtime.jobmaster.slotpool.PendingRequest> pendingRequests, Map<ResourceID,LoadingWeight> taskExecutorsLoad)Match the given slots with the given collection of pending requests.StringtoString()static TasksBalancedRequestSlotMatchingStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static TasksBalancedRequestSlotMatchingStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TasksBalancedRequestSlotMatchingStrategy INSTANCE
-
-
Method Detail
-
values
public static TasksBalancedRequestSlotMatchingStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TasksBalancedRequestSlotMatchingStrategy c : TasksBalancedRequestSlotMatchingStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TasksBalancedRequestSlotMatchingStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
matchRequestsAndSlots
public Collection<RequestSlotMatchingStrategy.RequestSlotMatch> matchRequestsAndSlots(Collection<? extends PhysicalSlot> slots, Collection<org.apache.flink.runtime.jobmaster.slotpool.PendingRequest> pendingRequests, Map<ResourceID,LoadingWeight> taskExecutorsLoad)
Description copied from interface:RequestSlotMatchingStrategyMatch the given slots with the given collection of pending requests.- Specified by:
matchRequestsAndSlotsin interfaceRequestSlotMatchingStrategy- Parameters:
slots- slots to matchpendingRequests- slot requests to matchtaskExecutorsLoad- current task executors loading weight information- Returns:
- resulting matches of this operation
-
toString
public String toString()
- Overrides:
toStringin classEnum<TasksBalancedRequestSlotMatchingStrategy>
-
-