| Package | Description |
|---|---|
| io.atomix.protocols.raft.storage |
Standalone segmented log for Raft's Raft implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static RaftStorage.Builder |
RaftStorage.newBuilder()
Returns a new storage builder.
|
RaftStorage.Builder |
RaftStorage.Builder.withDirectory(File directory)
Sets the log directory, returning the builder for method chaining.
|
RaftStorage.Builder |
RaftStorage.Builder.withDirectory(String directory)
Sets the log directory, returning the builder for method chaining.
|
RaftStorage.Builder |
RaftStorage.Builder.withDynamicCompaction()
Enables dynamic log compaction.
|
RaftStorage.Builder |
RaftStorage.Builder.withDynamicCompaction(boolean dynamicCompaction)
Enables dynamic log compaction.
|
RaftStorage.Builder |
RaftStorage.Builder.withFlushOnCommit()
Enables flushing buffers to disk when entries are committed to a segment, returning the builder
for method chaining.
|
RaftStorage.Builder |
RaftStorage.Builder.withFlushOnCommit(boolean flushOnCommit)
Sets whether to flush buffers to disk when entries are committed to a segment, returning the builder
for method chaining.
|
RaftStorage.Builder |
RaftStorage.Builder.withFreeDiskBuffer(double freeDiskBuffer)
Sets the percentage of free disk space that must be preserved before log compaction is forced.
|
RaftStorage.Builder |
RaftStorage.Builder.withMaxEntriesPerSegment(int maxEntriesPerSegment)
Sets the maximum number of allows entries per segment, returning the builder for method chaining.
|
RaftStorage.Builder |
RaftStorage.Builder.withMaxSegmentSize(int maxSegmentSize)
Sets the maximum segment size in bytes, returning the builder for method chaining.
|
RaftStorage.Builder |
RaftStorage.Builder.withPrefix(String prefix)
Sets the storage prefix.
|
RaftStorage.Builder |
RaftStorage.Builder.withRetainStaleSnapshots()
Enables retaining stale snapshots on disk, returning the builder for method chaining.
|
RaftStorage.Builder |
RaftStorage.Builder.withRetainStaleSnapshots(boolean retainStaleSnapshots)
Sets whether to retain stale snapshots on disk, returning the builder for method chaining.
|
RaftStorage.Builder |
RaftStorage.Builder.withSerializer(io.atomix.serializer.Serializer serializer)
Sets the storage serializer.
|
RaftStorage.Builder |
RaftStorage.Builder.withStorageLevel(io.atomix.storage.StorageLevel storageLevel)
Sets the log storage level, returning the builder for method chaining.
|
Copyright © 2013–2017. All rights reserved.