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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAllocationSnapshot(int slotIndex) Delete the slot allocation snapshot identified by the slot index.Load all persisted slot allocation snapshots.voidpersistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot) Persist the given slot allocation snapshot.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:SlotAllocationSnapshotPersistenceServicePersist the given slot allocation snapshot.- Specified by:
persistAllocationSnapshotin 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:SlotAllocationSnapshotPersistenceServiceDelete the slot allocation snapshot identified by the slot index.- Specified by:
deleteAllocationSnapshotin interfaceSlotAllocationSnapshotPersistenceService- Parameters:
slotIndex- identifying the slot allocation snapshot to delete
-
loadAllocationSnapshots
Description copied from interface:SlotAllocationSnapshotPersistenceServiceLoad all persisted slot allocation snapshots.- Specified by:
loadAllocationSnapshotsin interfaceSlotAllocationSnapshotPersistenceService- Returns:
- loaded slot allocations snapshots
-