Package io.camunda.zeebe.snapshots.impl
Class FileBasedSnapshotStoreImpl
java.lang.Object
io.camunda.zeebe.snapshots.impl.FileBasedSnapshotStoreImpl
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileBasedSnapshotStoreImpl(int brokerId, int partitionId, Path root, CRC32CChecksumProvider checksumProvider, ConcurrencyControl actor) -
Method Summary
Modifier and TypeMethodDescriptionaddSnapshotListener(PersistedSnapshotListener listener) voidclose()delete()longgetPath()booleanhasSnapshotId(String id) newReceivedSnapshot(String snapshotId) newTransientSnapshot(long index, long term, long processedPosition, long exportedPosition) voidvoidstart()toString()
-
Field Details
-
SNAPSHOTS_DIRECTORY
- See Also:
-
PENDING_DIRECTORY
- See Also:
-
-
Constructor Details
-
FileBasedSnapshotStoreImpl
public FileBasedSnapshotStoreImpl(int brokerId, int partitionId, Path root, CRC32CChecksumProvider checksumProvider, ConcurrencyControl actor)
-
-
Method Details
-
start
public void start() -
close
public void close() -
hasSnapshotId
-
getLatestSnapshot
-
getAvailableSnapshots
-
getCompactionBound
-
purgePendingSnapshots
-
addSnapshotListener
-
removeSnapshotListener
-
getCurrentSnapshotIndex
public long getCurrentSnapshotIndex() -
delete
-
getPath
-
newReceivedSnapshot
-
newTransientSnapshot
public Either<SnapshotException,TransientSnapshot> newTransientSnapshot(long index, long term, long processedPosition, long exportedPosition) -
toString
-
restore
- Throws:
IOException
-