public interface StateMachineStorage
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanupOldSnapshots(SnapshotRetentionPolicy snapshotRetentionPolicy) |
void |
format() |
SnapshotInfo |
getLatestSnapshot()
Returns the information for the latest durable snapshot.
|
default File |
getSnapshotDir() |
default File |
getTmpDir() |
void |
init(RaftStorage raftStorage) |
void init(RaftStorage raftStorage) throws IOException
IOExceptionSnapshotInfo getLatestSnapshot()
void format()
throws IOException
IOExceptionvoid cleanupOldSnapshots(SnapshotRetentionPolicy snapshotRetentionPolicy) throws IOException
IOExceptiondefault File getSnapshotDir()
default File getTmpDir()
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.