Enum DeclarativeSlotPool.NoOpNewSlotsListener
- java.lang.Object
-
- java.lang.Enum<DeclarativeSlotPool.NoOpNewSlotsListener>
-
- org.apache.flink.runtime.jobmaster.slotpool.DeclarativeSlotPool.NoOpNewSlotsListener
-
- All Implemented Interfaces:
Serializable
,Comparable<DeclarativeSlotPool.NoOpNewSlotsListener>
,DeclarativeSlotPool.NewSlotsListener
- Enclosing interface:
- DeclarativeSlotPool
public static enum DeclarativeSlotPool.NoOpNewSlotsListener extends Enum<DeclarativeSlotPool.NoOpNewSlotsListener> implements DeclarativeSlotPool.NewSlotsListener
No-opDeclarativeSlotPool.NewSlotsListener
implementation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notifyNewSlotsAreAvailable(Collection<? extends PhysicalSlot> newlyAvailableSlots)
Notifies the listener about newly available slots.static DeclarativeSlotPool.NoOpNewSlotsListener
valueOf(String name)
Returns the enum constant of this type with the specified name.static DeclarativeSlotPool.NoOpNewSlotsListener[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final DeclarativeSlotPool.NoOpNewSlotsListener INSTANCE
-
-
Method Detail
-
values
public static DeclarativeSlotPool.NoOpNewSlotsListener[] 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 (DeclarativeSlotPool.NoOpNewSlotsListener c : DeclarativeSlotPool.NoOpNewSlotsListener.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeclarativeSlotPool.NoOpNewSlotsListener 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
-
notifyNewSlotsAreAvailable
public void notifyNewSlotsAreAvailable(Collection<? extends PhysicalSlot> newlyAvailableSlots)
Description copied from interface:DeclarativeSlotPool.NewSlotsListener
Notifies the listener about newly available slots.This method will be called whenever newly offered slots are accepted or if an allocated slot should become free after it is being
freed
.- Specified by:
notifyNewSlotsAreAvailable
in interfaceDeclarativeSlotPool.NewSlotsListener
- Parameters:
newlyAvailableSlots
- are the newly available slots
-
-