| Package | Description |
|---|---|
| io.atomix.protocols.raft.storage.snapshot |
Classes and interfaces that aid in storing, loading, and installing on-disk state machine snapshots.
|
| Modifier and Type | Method and Description |
|---|---|
Snapshot |
Snapshot.complete()
Completes writing the snapshot to persist it and make it available for reads.
|
Snapshot |
SnapshotStore.getSnapshotById(ServiceId id)
Returns the last snapshot for the given state machine identifier.
|
Snapshot |
SnapshotStore.newSnapshot(ServiceId serviceId,
String serviceName,
long index,
io.atomix.time.WallClockTimestamp timestamp)
Creates a new snapshot.
|
Snapshot |
SnapshotStore.newTemporarySnapshot(ServiceId serviceId,
String serviceName,
long index,
io.atomix.time.WallClockTimestamp timestamp)
Creates a temporary in-memory snapshot.
|
Snapshot |
Snapshot.persist()
Persists the snapshot to disk if necessary.
|
Snapshot |
SnapshotWriter.snapshot()
Returns the snapshot associated with the writer.
|
Snapshot |
SnapshotReader.snapshot()
Returns the snapshot associated with the reader.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Snapshot> |
SnapshotStore.getSnapshotsByIndex(long index)
Returns the snapshot at the given index.
|
Copyright © 2013–2017. All rights reserved.