| 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.getSnapshot(io.atomix.primitive.PrimitiveId serviceId,
long index)
Returns the snapshot for the given primitive at the given index.
|
Snapshot |
SnapshotStore.getSnapshotById(io.atomix.primitive.PrimitiveId id)
Returns the last snapshot for the given state machine identifier.
|
Snapshot |
SnapshotStore.newSnapshot(io.atomix.primitive.PrimitiveId primitiveId,
String serviceName,
long index,
io.atomix.utils.time.WallClockTimestamp timestamp)
Creates a new snapshot.
|
Snapshot |
SnapshotStore.newTemporarySnapshot(io.atomix.primitive.PrimitiveId primitiveId,
String serviceName,
long index,
io.atomix.utils.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–2018. All rights reserved.