Enum SlotSelectionStrategy.NoOpSlotSelectionStrategy
- java.lang.Object
-
- java.lang.Enum<SlotSelectionStrategy.NoOpSlotSelectionStrategy>
-
- org.apache.flink.runtime.jobmaster.slotpool.SlotSelectionStrategy.NoOpSlotSelectionStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<SlotSelectionStrategy.NoOpSlotSelectionStrategy>,SlotSelectionStrategy
- Enclosing interface:
- SlotSelectionStrategy
public static enum SlotSelectionStrategy.NoOpSlotSelectionStrategy extends Enum<SlotSelectionStrategy.NoOpSlotSelectionStrategy> implements SlotSelectionStrategy
The no actions implementation ofSlotSelectionStrategy.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.runtime.jobmaster.slotpool.SlotSelectionStrategy
SlotSelectionStrategy.NoOpSlotSelectionStrategy, SlotSelectionStrategy.SlotInfoAndLocality
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SlotSelectionStrategy.SlotInfoAndLocality>selectBestSlotForProfile(FreeSlotTracker freeSlotTracker, SlotProfile slotProfile)Selects the bestSlotInfow.r.t. a certain selection criterion from the provided list of available slots and considering the givenSlotProfilethat describes the requirements.static SlotSelectionStrategy.NoOpSlotSelectionStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static SlotSelectionStrategy.NoOpSlotSelectionStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final SlotSelectionStrategy.NoOpSlotSelectionStrategy INSTANCE
-
-
Method Detail
-
values
public static SlotSelectionStrategy.NoOpSlotSelectionStrategy[] 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 (SlotSelectionStrategy.NoOpSlotSelectionStrategy c : SlotSelectionStrategy.NoOpSlotSelectionStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SlotSelectionStrategy.NoOpSlotSelectionStrategy 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
-
selectBestSlotForProfile
public Optional<SlotSelectionStrategy.SlotInfoAndLocality> selectBestSlotForProfile(@Nonnull FreeSlotTracker freeSlotTracker, @Nonnull SlotProfile slotProfile)
Description copied from interface:SlotSelectionStrategySelects the bestSlotInfow.r.t. a certain selection criterion from the provided list of available slots and considering the givenSlotProfilethat describes the requirements.- Specified by:
selectBestSlotForProfilein interfaceSlotSelectionStrategy- Parameters:
freeSlotTracker- a list of the available slots together with their remaining resources to select from.slotProfile- a slot profile, describing requirements for the slot selection.- Returns:
- the selected slot info with the corresponding locality hint.
-
-