public class FileSlotAllocationSnapshotPersistenceService extends Object implements SlotAllocationSnapshotPersistenceService
SlotAllocationSnapshotPersistenceService that persists the SlotAllocationSnapshot as local files.| Constructor and Description |
|---|
FileSlotAllocationSnapshotPersistenceService(File slotAllocationSnapshotDirectory) |
| 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.
|
public FileSlotAllocationSnapshotPersistenceService(File slotAllocationSnapshotDirectory)
public void persistAllocationSnapshot(SlotAllocationSnapshot slotAllocationSnapshot) throws IOException
SlotAllocationSnapshotPersistenceServicepersistAllocationSnapshot in interface SlotAllocationSnapshotPersistenceServiceslotAllocationSnapshot - slot allocation snapshot to persistIOException - if the slot allocation snapshot cannot be persistedpublic void deleteAllocationSnapshot(int slotIndex)
SlotAllocationSnapshotPersistenceServicedeleteAllocationSnapshot in interface SlotAllocationSnapshotPersistenceServiceslotIndex - identifying the slot allocation snapshot to deletepublic Collection<SlotAllocationSnapshot> loadAllocationSnapshots()
SlotAllocationSnapshotPersistenceServiceloadAllocationSnapshots in interface SlotAllocationSnapshotPersistenceServiceCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.