public static interface RaftServerConfigKeys.Log
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RaftServerConfigKeys.Log.Appender |
static class |
RaftServerConfigKeys.Log.CorruptionPolicy
The policy to handle corrupted raft log.
|
static interface |
RaftServerConfigKeys.Log.StateMachineData |
static final String PREFIX
static final String USE_MEMORY_KEY
static final boolean USE_MEMORY_DEFAULT
static final String QUEUE_ELEMENT_LIMIT_KEY
static final int QUEUE_ELEMENT_LIMIT_DEFAULT
static final String QUEUE_BYTE_LIMIT_KEY
static final SizeInBytes QUEUE_BYTE_LIMIT_DEFAULT
static final String PURGE_GAP_KEY
static final int PURGE_GAP_DEFAULT
static final String PURGE_UPTO_SNAPSHOT_INDEX_KEY
static final boolean PURGE_UPTO_SNAPSHOT_INDEX_DEFAULT
static final String SEGMENT_SIZE_MAX_KEY
static final SizeInBytes SEGMENT_SIZE_MAX_DEFAULT
static final String SEGMENT_CACHE_NUM_MAX_KEY
static final int SEGMENT_CACHE_NUM_MAX_DEFAULT
static final String PREALLOCATED_SIZE_KEY
static final SizeInBytes PREALLOCATED_SIZE_DEFAULT
static final String WRITE_BUFFER_SIZE_KEY
static final SizeInBytes WRITE_BUFFER_SIZE_DEFAULT
static final String FORCE_SYNC_NUM_KEY
static final int FORCE_SYNC_NUM_DEFAULT
static final String CORRUPTION_POLICY_KEY
static final RaftServerConfigKeys.Log.CorruptionPolicy CORRUPTION_POLICY_DEFAULT
static boolean useMemory(RaftProperties properties)
static void setUseMemory(RaftProperties properties, boolean useMemory)
static int queueElementLimit(RaftProperties properties)
static void setQueueElementLimit(RaftProperties properties, int queueSize)
static SizeInBytes queueByteLimit(RaftProperties properties)
static void setQueueByteLimit(RaftProperties properties, int queueSize)
static int purgeGap(RaftProperties properties)
static void setPurgeGap(RaftProperties properties, int purgeGap)
static boolean purgeUptoSnapshotIndex(RaftProperties properties)
static void setPurgeUptoSnapshotIndex(RaftProperties properties, boolean shouldPurgeUptoSnapshotIndex)
static SizeInBytes segmentSizeMax(RaftProperties properties)
static void setSegmentSizeMax(RaftProperties properties, SizeInBytes segmentSizeMax)
static int segmentCacheNumMax(RaftProperties properties)
static void setSegmentCacheNumMax(RaftProperties properties, int maxCachedSegmentNum)
static SizeInBytes preallocatedSize(RaftProperties properties)
static void setPreallocatedSize(RaftProperties properties, SizeInBytes preallocatedSize)
static SizeInBytes writeBufferSize(RaftProperties properties)
static void setWriteBufferSize(RaftProperties properties, SizeInBytes writeBufferSize)
static int forceSyncNum(RaftProperties properties)
static void setForceSyncNum(RaftProperties properties, int forceSyncNum)
static RaftServerConfigKeys.Log.CorruptionPolicy corruptionPolicy(RaftProperties properties)
static void setCorruptionPolicy(RaftProperties properties, RaftServerConfigKeys.Log.CorruptionPolicy corruptionPolicy)
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.