| Package | Description |
|---|---|
| io.atomix.protocols.raft.service | |
| 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 |
|---|---|
static ServiceId |
ServiceId.from(long id)
Creates a snapshot ID from the given number.
|
static ServiceId |
ServiceId.from(String id)
Creates a snapshot ID from the given string.
|
ServiceId |
ServiceContext.serviceId()
Returns the state machine identifier.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceId |
Snapshot.serviceId()
Returns the identifier of the state machine to which the snapshot belongs.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Copyright © 2013–2017. All rights reserved.