public static interface RaftServerConfigKeys.Snapshot
| Modifier and Type | Field and Description |
|---|---|
static boolean |
AUTO_TRIGGER_ENABLED_DEFAULT
by default let the state machine to decide when to do checkpoint
|
static String |
AUTO_TRIGGER_ENABLED_KEY
whether trigger snapshot when log size exceeds limit
|
static long |
AUTO_TRIGGER_THRESHOLD_DEFAULT |
static String |
AUTO_TRIGGER_THRESHOLD_KEY
log size limit (in number of log entries) that triggers the snapshot
|
static String |
PREFIX |
static int |
RETENTION_FILE_NUM_DEFAULT |
static String |
RETENTION_FILE_NUM_KEY |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
autoTriggerEnabled(RaftProperties properties) |
static long |
autoTriggerThreshold(RaftProperties properties) |
static int |
retentionFileNum(RaftProperties raftProperties) |
static void |
setAutoTriggerEnabled(RaftProperties properties,
boolean autoTriggerThreshold) |
static void |
setAutoTriggerThreshold(RaftProperties properties,
long autoTriggerThreshold) |
static void |
setRetentionFileNum(RaftProperties properties,
int numSnapshotFilesRetained) |
static final String PREFIX
static final String AUTO_TRIGGER_ENABLED_KEY
static final boolean AUTO_TRIGGER_ENABLED_DEFAULT
static final String AUTO_TRIGGER_THRESHOLD_KEY
static final long AUTO_TRIGGER_THRESHOLD_DEFAULT
static final String RETENTION_FILE_NUM_KEY
static final int RETENTION_FILE_NUM_DEFAULT
static boolean autoTriggerEnabled(RaftProperties properties)
static void setAutoTriggerEnabled(RaftProperties properties, boolean autoTriggerThreshold)
static long autoTriggerThreshold(RaftProperties properties)
static void setAutoTriggerThreshold(RaftProperties properties, long autoTriggerThreshold)
static int retentionFileNum(RaftProperties raftProperties)
static void setRetentionFileNum(RaftProperties properties, int numSnapshotFilesRetained)
Copyright © 2017–2020 The Apache Software Foundation. All rights reserved.