public static interface RaftServerConfigKeys.Snapshot
| 限定符和类型 | 字段和说明 |
|---|---|
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 long |
CREATION_GAP_DEFAULT |
static String |
CREATION_GAP_KEY
The log index gap between to two snapshot creations.
|
static String |
PREFIX |
static int |
RETENTION_FILE_NUM_DEFAULT |
static String |
RETENTION_FILE_NUM_KEY |
static boolean |
TRIGGER_WHEN_REMOVE_ENABLED_DEFAULT
by default let the state machine to trigger snapshot when remove
|
static String |
TRIGGER_WHEN_REMOVE_ENABLED_KEY
whether trigger snapshot when remove raft server
|
static boolean |
TRIGGER_WHEN_STOP_ENABLED_DEFAULT
by default let the state machine to trigger snapshot when stop
|
static String |
TRIGGER_WHEN_STOP_ENABLED_KEY
whether trigger snapshot when stop raft server
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
autoTriggerEnabled(RaftProperties properties) |
static long |
autoTriggerThreshold(RaftProperties properties) |
static long |
creationGap(RaftProperties properties) |
static int |
retentionFileNum(RaftProperties raftProperties) |
static void |
setAutoTriggerEnabled(RaftProperties properties,
boolean autoTriggerEnabled) |
static void |
setAutoTriggerThreshold(RaftProperties properties,
long autoTriggerThreshold) |
static void |
setCreationGap(RaftProperties properties,
long creationGap) |
static void |
setRetentionFileNum(RaftProperties properties,
int numSnapshotFilesRetained) |
static void |
setTriggerWhenRemoveEnabled(RaftProperties properties,
boolean triggerWhenRemoveEnabled) |
static void |
setTriggerWhenStopEnabled(RaftProperties properties,
boolean triggerWhenStopEnabled) |
static boolean |
triggerWhenRemoveEnabled(RaftProperties properties) |
static boolean |
triggerWhenStopEnabled(RaftProperties properties) |
static final String AUTO_TRIGGER_ENABLED_KEY
static final boolean AUTO_TRIGGER_ENABLED_DEFAULT
static final String TRIGGER_WHEN_STOP_ENABLED_KEY
static final boolean TRIGGER_WHEN_STOP_ENABLED_DEFAULT
static final String TRIGGER_WHEN_REMOVE_ENABLED_KEY
static final boolean TRIGGER_WHEN_REMOVE_ENABLED_DEFAULT
static final String CREATION_GAP_KEY
static final long CREATION_GAP_DEFAULT
static final String AUTO_TRIGGER_THRESHOLD_KEY
static final long AUTO_TRIGGER_THRESHOLD_DEFAULT
static final int RETENTION_FILE_NUM_DEFAULT
static boolean autoTriggerEnabled(RaftProperties properties)
static void setAutoTriggerEnabled(RaftProperties properties, boolean autoTriggerEnabled)
static boolean triggerWhenStopEnabled(RaftProperties properties)
static void setTriggerWhenStopEnabled(RaftProperties properties, boolean triggerWhenStopEnabled)
static boolean triggerWhenRemoveEnabled(RaftProperties properties)
static void setTriggerWhenRemoveEnabled(RaftProperties properties, boolean triggerWhenRemoveEnabled)
static long creationGap(RaftProperties properties)
static void setCreationGap(RaftProperties properties, long creationGap)
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–2025 The Apache Software Foundation. All rights reserved.