public enum NoOpSlotAllocationSnapshotPersistenceService extends Enum<NoOpSlotAllocationSnapshotPersistenceService> implements SlotAllocationSnapshotPersistenceService
SlotAllocationSnapshotPersistenceService
that does nothing.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and 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.
|
public static final NoOpSlotAllocationSnapshotPersistenceService INSTANCE
public static NoOpSlotAllocationSnapshotPersistenceService[] values()
for (NoOpSlotAllocationSnapshotPersistenceService c : NoOpSlotAllocationSnapshotPersistenceService.values()) System.out.println(c);
public static NoOpSlotAllocationSnapshotPersistenceService valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void persistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot) throws IOException
SlotAllocationSnapshotPersistenceService
persistAllocationSnapshot
in interface SlotAllocationSnapshotPersistenceService
slotAllocationSnapshot
- slot allocation snapshot to persistIOException
- if the slot allocation snapshot cannot be persistedpublic void deleteAllocationSnapshot(int slotIndex)
SlotAllocationSnapshotPersistenceService
deleteAllocationSnapshot
in interface SlotAllocationSnapshotPersistenceService
slotIndex
- identifying the slot allocation snapshot to deletepublic Collection<SlotAllocationSnapshot> loadAllocationSnapshots()
SlotAllocationSnapshotPersistenceService
loadAllocationSnapshots
in interface SlotAllocationSnapshotPersistenceService
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.