Enum TasksBalancedSlotMatchingResolver
- java.lang.Object
-
- java.lang.Enum<TasksBalancedSlotMatchingResolver>
-
- org.apache.flink.runtime.scheduler.adaptive.allocator.TasksBalancedSlotMatchingResolver
-
- All Implemented Interfaces:
Serializable,Comparable<TasksBalancedSlotMatchingResolver>,SlotMatchingResolver
public enum TasksBalancedSlotMatchingResolver extends Enum<TasksBalancedSlotMatchingResolver> implements SlotMatchingResolver
The tasks balanced request slot matching resolver implementation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
-
Fields inherited from interface org.apache.flink.runtime.scheduler.adaptive.allocator.SlotMatchingResolver
NO_SLOTS_EXCEPTION_GETTER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<JobSchedulingPlan.SlotAssignment>matchSlotSharingGroupWithSlots(Collection<SlotSharingSlotAllocator.ExecutionSlotSharingGroup> requestGroups, Collection<PhysicalSlot> freeSlots)Match slots from the free slots with the given collection of requests execution groups.static TasksBalancedSlotMatchingResolvervalueOf(String name)Returns the enum constant of this type with the specified name.static TasksBalancedSlotMatchingResolver[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TasksBalancedSlotMatchingResolver INSTANCE
-
-
Method Detail
-
values
public static TasksBalancedSlotMatchingResolver[] 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 (TasksBalancedSlotMatchingResolver c : TasksBalancedSlotMatchingResolver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TasksBalancedSlotMatchingResolver 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
-
matchSlotSharingGroupWithSlots
public Collection<JobSchedulingPlan.SlotAssignment> matchSlotSharingGroupWithSlots(Collection<SlotSharingSlotAllocator.ExecutionSlotSharingGroup> requestGroups, Collection<PhysicalSlot> freeSlots)
Description copied from interface:SlotMatchingResolverMatch slots from the free slots with the given collection of requests execution groups.- Specified by:
matchSlotSharingGroupWithSlotsin interfaceSlotMatchingResolver- Parameters:
requestGroups- the requested execution slot sharing groups.freeSlots- the free slots.- Returns:
- The assignment result.
-
-