public interface SnapshotStorage
| Modifier and Type | Method and Description |
|---|---|
SnapshotWriter |
createSnapshot(String name,
long logPosition)
Returns a writer to create a new snapshot.
|
SnapshotWriter |
createTemporarySnapshot(String name,
long logPosition)
Returns a writer to create a temporary snapshot.
|
ReadableSnapshot |
getLastSnapshot(String name)
Returns the last snapshot for the given name.
|
List<SnapshotMetadata> |
listSnapshots()
Returns a list of available snapshots; for each snapshot item, it returns the latest file.
|
boolean |
purgeSnapshot(String name)
Deletes all existing snapshot and checksum files.
|
boolean |
snapshotExists(String name,
long logPosition)
Returns whether or not there already exists a snapshot for the given name + position.
|
ReadableSnapshot getLastSnapshot(String name) throws Exception
name - the name of the snapshotnull if none existsException - if fails to open the snapshotSnapshotWriter createSnapshot(String name, long logPosition) throws Exception
name - the name of the snapshotlogPosition - the log position at which the snapshot is takenException - if fails to create the snapshotboolean purgeSnapshot(String name)
name - the name of the snapshotList<SnapshotMetadata> listSnapshots()
boolean snapshotExists(String name, long logPosition)
SnapshotWriter createTemporarySnapshot(String name, long logPosition) throws Exception
name - the snapshot namelogPosition - the logPositionException - if it fails to prepare the necessary resources for the temporary snapshotCopyright © 2017–2018 camunda services GmbH. All rights reserved.