Enum NoOpSlotAllocationSnapshotPersistenceService
- java.lang.Object
-
- java.lang.Enum<NoOpSlotAllocationSnapshotPersistenceService>
-
- org.apache.flink.runtime.taskexecutor.slot.NoOpSlotAllocationSnapshotPersistenceService
-
- All Implemented Interfaces:
Serializable
,Comparable<NoOpSlotAllocationSnapshotPersistenceService>
,SlotAllocationSnapshotPersistenceService
public enum NoOpSlotAllocationSnapshotPersistenceService extends Enum<NoOpSlotAllocationSnapshotPersistenceService> implements SlotAllocationSnapshotPersistenceService
SlotAllocationSnapshotPersistenceService
that does nothing.
-
-
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
deleteAllocationSnapshot(int slotIndex)
Delete the slot allocation snapshot identified by the slot index.Collection<SlotAllocationSnapshot>
loadAllocationSnapshots()
Load all persisted slot allocation snapshots.void
persistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot)
Persist the given slot allocation snapshot.static NoOpSlotAllocationSnapshotPersistenceService
valueOf(String name)
Returns the enum constant of this type with the specified name.static NoOpSlotAllocationSnapshotPersistenceService[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final NoOpSlotAllocationSnapshotPersistenceService INSTANCE
-
-
Method Detail
-
values
public static NoOpSlotAllocationSnapshotPersistenceService[] 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 (NoOpSlotAllocationSnapshotPersistenceService c : NoOpSlotAllocationSnapshotPersistenceService.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoOpSlotAllocationSnapshotPersistenceService 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
-
persistAllocationSnapshot
public void persistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot) throws IOException
Description copied from interface:SlotAllocationSnapshotPersistenceService
Persist the given slot allocation snapshot.- Specified by:
persistAllocationSnapshot
in interfaceSlotAllocationSnapshotPersistenceService
- Parameters:
slotAllocationSnapshot
- slot allocation snapshot to persist- Throws:
IOException
- if the slot allocation snapshot cannot be persisted
-
deleteAllocationSnapshot
public void deleteAllocationSnapshot(int slotIndex)
Description copied from interface:SlotAllocationSnapshotPersistenceService
Delete the slot allocation snapshot identified by the slot index.- Specified by:
deleteAllocationSnapshot
in interfaceSlotAllocationSnapshotPersistenceService
- Parameters:
slotIndex
- identifying the slot allocation snapshot to delete
-
loadAllocationSnapshots
public Collection<SlotAllocationSnapshot> loadAllocationSnapshots()
Description copied from interface:SlotAllocationSnapshotPersistenceService
Load all persisted slot allocation snapshots.- Specified by:
loadAllocationSnapshots
in interfaceSlotAllocationSnapshotPersistenceService
- Returns:
- loaded slot allocations snapshots
-
-