public class FileSlotAllocationSnapshotPersistenceService extends Object implements SlotAllocationSnapshotPersistenceService
SlotAllocationSnapshotPersistenceService that persists the SlotAllocationSnapshot as local files.| 构造器和说明 |
|---|
FileSlotAllocationSnapshotPersistenceService(File slotAllocationSnapshotDirectory) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 SlotAllocationSnapshotPersistenceServiceslotAllocationSnapshot - slot allocation snapshot to persistIOException - if the slot allocation snapshot cannot be persistedpublic void deleteAllocationSnapshot(int slotIndex)
SlotAllocationSnapshotPersistenceServicedeleteAllocationSnapshot 在接口中 SlotAllocationSnapshotPersistenceServiceslotIndex - identifying the slot allocation snapshot to deletepublic Collection<SlotAllocationSnapshot> loadAllocationSnapshots()
SlotAllocationSnapshotPersistenceServiceloadAllocationSnapshots 在接口中 SlotAllocationSnapshotPersistenceServiceCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.