public static interface RaftServerConfigKeys.Log
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
RaftServerConfigKeys.Log.Appender |
static class |
RaftServerConfigKeys.Log.CorruptionPolicy
The policy to handle corrupted raft log.
|
static interface |
RaftServerConfigKeys.Log.StateMachineData |
static final boolean USE_MEMORY_DEFAULT
static final int QUEUE_ELEMENT_LIMIT_DEFAULT
static final SizeInBytes QUEUE_BYTE_LIMIT_DEFAULT
static final int PURGE_GAP_DEFAULT
static final boolean PURGE_UPTO_SNAPSHOT_INDEX_DEFAULT
static final long PURGE_PRESERVATION_LOG_NUM_DEFAULT
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 SizeInBytes SEGMENT_CACHE_SIZE_MAX_DEFAULT
static final SizeInBytes PREALLOCATED_SIZE_DEFAULT
static final SizeInBytes WRITE_BUFFER_SIZE_DEFAULT
static final int FORCE_SYNC_NUM_DEFAULT
static final String UNSAFE_FLUSH_ENABLED_KEY
static final boolean UNSAFE_FLUSH_ENABLED_DEFAULT
static final String ASYNC_FLUSH_ENABLED_KEY
static final boolean ASYNC_FLUSH_ENABLED_DEFAULT
static final String LOG_METADATA_ENABLED_KEY
static final boolean LOG_METADATA_ENABLED_DEFAULT
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)
@Deprecated static void setQueueByteLimit(RaftProperties properties, int queueSize)
static void setQueueByteLimit(RaftProperties properties, SizeInBytes byteLimit)
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 long purgePreservationLogNum(RaftProperties properties)
static void setPurgePreservationLogNum(RaftProperties properties, long purgePreserveLogNum)
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 segmentCacheSizeMax(RaftProperties properties)
static void setSegmentCacheSizeMax(RaftProperties properties, SizeInBytes maxCachedSegmentSize)
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 boolean unsafeFlushEnabled(RaftProperties properties)
static void setUnsafeFlushEnabled(RaftProperties properties, boolean unsafeFlush)
static boolean asyncFlushEnabled(RaftProperties properties)
static void setAsyncFlushEnabled(RaftProperties properties, boolean asyncFlush)
static boolean logMetadataEnabled(RaftProperties properties)
static void setLogMetadataEnabled(RaftProperties properties, boolean logMetadata)
static RaftServerConfigKeys.Log.CorruptionPolicy corruptionPolicy(RaftProperties properties)
static void setCorruptionPolicy(RaftProperties properties, RaftServerConfigKeys.Log.CorruptionPolicy corruptionPolicy)
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.