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
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.