| Package | Description |
|---|---|
| io.atomix.copycat.server.storage |
Standalone segmented log for Copycat's Raft implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static Storage.Builder |
Storage.builder()
Returns a new storage builder.
|
Storage.Builder |
Storage.Builder.withCompactionThreads(int compactionThreads)
Sets the number of log compaction threads, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withCompactionThreshold(double threshold)
Sets the percentage of entries in the segment that must be released before a segment can be compacted,
returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withDirectory(File directory)
Sets the log directory, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withDirectory(String directory)
Sets the log directory, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withEntryBufferSize(int entryBufferSize)
Sets the entry buffer size.
|
Storage.Builder |
Storage.Builder.withFlushOnCommit()
Enables flushing buffers to disk when entries are committed to a segment, returning the builder
for method chaining.
|
Storage.Builder |
Storage.Builder.withFlushOnCommit(boolean flushOnCommit)
Sets whether to flush buffers to disk when entries are committed to a segment, returning the builder
for method chaining.
|
Storage.Builder |
Storage.Builder.withMajorCompactionInterval(Duration interval)
Sets the major compaction interval, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withMaxEntriesPerSegment(int maxEntriesPerSegment)
Sets the maximum number of allows entries per segment, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withMaxSegmentSize(int maxSegmentSize)
Sets the maximum segment size in bytes, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withMinorCompactionInterval(Duration interval)
Sets the minor compaction interval, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withRetainStaleSnapshots()
Enables retaining stale snapshots on disk, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withRetainStaleSnapshots(boolean retainStaleSnapshots)
Sets whether to retain stale snapshots on disk, returning the builder for method chaining.
|
Storage.Builder |
Storage.Builder.withStorageLevel(StorageLevel storageLevel)
Sets the log storage level, returning the builder for method chaining.
|
Copyright © 2013–2016. All rights reserved.