| 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 |
|---|---|
SnapshotWriter |
SnapshotWriter.flush() |
abstract SnapshotWriter |
Snapshot.openWriter()
Opens a new snapshot writer.
|
SnapshotWriter |
SnapshotWriter.write(io.atomix.storage.buffer.Buffer buffer) |
SnapshotWriter |
SnapshotWriter.write(byte[] bytes) |
SnapshotWriter |
SnapshotWriter.write(byte[] bytes,
int offset,
int length) |
SnapshotWriter |
SnapshotWriter.write(io.atomix.storage.buffer.Bytes bytes) |
SnapshotWriter |
SnapshotWriter.write(io.atomix.storage.buffer.Bytes bytes,
int offset,
int length) |
SnapshotWriter |
SnapshotWriter.writeBoolean(boolean b) |
SnapshotWriter |
SnapshotWriter.writeByte(int b) |
SnapshotWriter |
SnapshotWriter.writeChar(char c) |
SnapshotWriter |
SnapshotWriter.writeDouble(double d) |
SnapshotWriter |
SnapshotWriter.writeFloat(float f) |
SnapshotWriter |
SnapshotWriter.writeInt(int i) |
SnapshotWriter |
SnapshotWriter.writeLong(long l) |
SnapshotWriter |
SnapshotWriter.writeMedium(int m) |
<T> SnapshotWriter |
SnapshotWriter.writeObject(T object,
com.google.common.base.Function<T,byte[]> encoder)
Writes an object to the snapshot.
|
SnapshotWriter |
SnapshotWriter.writeShort(short s) |
SnapshotWriter |
SnapshotWriter.writeString(String s) |
SnapshotWriter |
SnapshotWriter.writeString(String s,
Charset charset) |
SnapshotWriter |
SnapshotWriter.writeUnsignedByte(int b) |
SnapshotWriter |
SnapshotWriter.writeUnsignedInt(long i) |
SnapshotWriter |
SnapshotWriter.writeUnsignedMedium(int m) |
SnapshotWriter |
SnapshotWriter.writeUnsignedShort(int s) |
SnapshotWriter |
SnapshotWriter.writeUTF8(String s) |
| Modifier and Type | Method and Description |
|---|---|
void |
Snapshottable.snapshot(SnapshotWriter writer)
Takes a snapshot of the state machine state.
|
Copyright © 2013–2017. All rights reserved.