Enum SimpleSlotMatchingResolver
- java.lang.Object
-
- java.lang.Enum<SimpleSlotMatchingResolver>
-
- org.apache.flink.runtime.scheduler.adaptive.allocator.SimpleSlotMatchingResolver
-
- All Implemented Interfaces:
Serializable,Comparable<SimpleSlotMatchingResolver>,SlotMatchingResolver
public enum SimpleSlotMatchingResolver extends Enum<SimpleSlotMatchingResolver> implements SlotMatchingResolver
The simple 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 SimpleSlotMatchingResolvervalueOf(String name)Returns the enum constant of this type with the specified name.static SimpleSlotMatchingResolver[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final SimpleSlotMatchingResolver INSTANCE
-
-
Method Detail
-
values
public static SimpleSlotMatchingResolver[] 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 (SimpleSlotMatchingResolver c : SimpleSlotMatchingResolver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleSlotMatchingResolver 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.
-
-