public interface RaftServerConfigKeys
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
RaftServerConfigKeys.DataStream |
static interface |
RaftServerConfigKeys.LeaderElection |
static interface |
RaftServerConfigKeys.Log |
static interface |
RaftServerConfigKeys.Notification |
static interface |
RaftServerConfigKeys.Read |
static interface |
RaftServerConfigKeys.RetryCache
server retry cache related
|
static interface |
RaftServerConfigKeys.Rpc
server rpc timeout related
|
static interface |
RaftServerConfigKeys.Snapshot |
static interface |
RaftServerConfigKeys.ThreadPool |
static interface |
RaftServerConfigKeys.Watch |
static interface |
RaftServerConfigKeys.Write |
| 限定符和类型 | 字段和说明 |
|---|---|
static TimeDuration |
CLOSE_THRESHOLD_DEFAULT |
static String |
CLOSE_THRESHOLD_KEY |
static org.slf4j.Logger |
LOG |
static String |
PREFIX |
static File |
REMOVED_GROUPS_DIR_DEFAULT |
static String |
REMOVED_GROUPS_DIR_KEY |
static TimeDuration |
SLEEP_DEVIATION_THRESHOLD_DEFAULT |
static String |
SLEEP_DEVIATION_THRESHOLD_KEY |
static int |
STAGING_CATCHUP_GAP_DEFAULT |
static String |
STAGING_CATCHUP_GAP_KEY
When bootstrapping a new peer, If the gap between the match index of the
peer and the leader's latest committed index is less than this gap, we
treat the peer as caught-up.
|
static TimeDuration |
STAGING_TIMEOUT_DEFAULT |
static String |
STAGING_TIMEOUT_KEY |
static List<File> |
STORAGE_DIR_DEFAULT |
static String |
STORAGE_DIR_KEY |
static SizeInBytes |
STORAGE_FREE_SPACE_MIN_DEFAULT |
static String |
STORAGE_FREE_SPACE_MIN_KEY |
static final org.slf4j.Logger LOG
static final SizeInBytes STORAGE_FREE_SPACE_MIN_DEFAULT
static final File REMOVED_GROUPS_DIR_DEFAULT
static final TimeDuration SLEEP_DEVIATION_THRESHOLD_DEFAULT
static final TimeDuration CLOSE_THRESHOLD_DEFAULT
static final String STAGING_CATCHUP_GAP_KEY
static final int STAGING_CATCHUP_GAP_DEFAULT
static final TimeDuration STAGING_TIMEOUT_DEFAULT
static List<File> storageDir(RaftProperties properties)
static void setStorageDir(RaftProperties properties, List<File> storageDir)
static SizeInBytes storageFreeSpaceMin(RaftProperties properties)
static void setStorageFreeSpaceMin(RaftProperties properties, SizeInBytes storageFreeSpaceMin)
static File removedGroupsDir(RaftProperties properties)
static void setRemovedGroupsDir(RaftProperties properties, File removedGroupsStorageDir)
static TimeDuration sleepDeviationThreshold(RaftProperties properties)
@Deprecated static void setSleepDeviationThreshold(RaftProperties properties, int thresholdMs)
static void setSleepDeviationThreshold(RaftProperties properties, TimeDuration threshold)
static TimeDuration closeThreshold(RaftProperties properties)
@Deprecated static void setCloseThreshold(RaftProperties properties, int thresholdSec)
static void setCloseThreshold(RaftProperties properties, TimeDuration threshold)
static int stagingCatchupGap(RaftProperties properties)
static void setStagingCatchupGap(RaftProperties properties, int stagingCatchupGap)
static TimeDuration stagingTimeout(RaftProperties properties)
static void setStagingTimeout(RaftProperties properties, TimeDuration stagingTimeout)
static void main(String[] args)
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.