public interface RaftServerConfigKeys
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RaftServerConfigKeys.Log |
static interface |
RaftServerConfigKeys.Notification |
static interface |
RaftServerConfigKeys.RetryCache
server retry cache related
|
static interface |
RaftServerConfigKeys.Rpc
server rpc timeout related
|
static interface |
RaftServerConfigKeys.Snapshot |
static interface |
RaftServerConfigKeys.Watch |
static interface |
RaftServerConfigKeys.Write |
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
static String |
PREFIX |
static int |
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 List<File> |
STORAGE_DIR_DEFAULT |
static String |
STORAGE_DIR_KEY |
| Modifier and Type | Method and Description |
|---|---|
static Consumer<String> |
getDefaultLog() |
static void |
main(String[] args) |
static void |
setSleepDeviationThreshold(RaftProperties properties,
int thresholdMs) |
static void |
setStagingCatchupGap(RaftProperties properties,
int stagingCatchupGap) |
static void |
setStorageDir(RaftProperties properties,
List<File> storageDir) |
static int |
sleepDeviationThreshold(RaftProperties properties) |
static int |
stagingCatchupGap(RaftProperties properties) |
static List<File> |
storageDir(RaftProperties properties) |
static final org.slf4j.Logger LOG
static final String PREFIX
static final String STORAGE_DIR_KEY
static final String SLEEP_DEVIATION_THRESHOLD_KEY
static final int SLEEP_DEVIATION_THRESHOLD_DEFAULT
static final String STAGING_CATCHUP_GAP_KEY
static final int STAGING_CATCHUP_GAP_DEFAULT
static List<File> storageDir(RaftProperties properties)
static void setStorageDir(RaftProperties properties, List<File> storageDir)
static int sleepDeviationThreshold(RaftProperties properties)
static void setSleepDeviationThreshold(RaftProperties properties, int thresholdMs)
static int stagingCatchupGap(RaftProperties properties)
static void setStagingCatchupGap(RaftProperties properties, int stagingCatchupGap)
static void main(String[] args)
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.