public class HotRestartPersistenceConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DATA_LOAD_TIMEOUT
Default load timeout
|
static int |
DEFAULT_PARALLELISM
Default level of parallelism in Hot Restart Persistence.
|
static int |
DEFAULT_VALIDATION_TIMEOUT
Default validation timeout
|
static String |
HOT_RESTART_BASE_DIR_DEFAULT
Default directory name for the Hot Restart store's home
|
Constructor and Description |
---|
HotRestartPersistenceConfig() |
Modifier and Type | Method and Description |
---|---|
File |
getBaseDir()
Base directory for all Hot Restart stores.
|
int |
getDataLoadTimeoutSeconds()
Returns configured data load timeout for hot-restart process.
|
int |
getParallelism()
Gets the configured number of Hot Restart store instance to create for one Hazelcast instance.
|
int |
getValidationTimeoutSeconds()
Returns configured validation timeout for hot-restart process.
|
boolean |
isEnabled()
Returns whether hot restart enabled on this member.
|
HotRestartPersistenceConfig |
setBaseDir(File baseDir)
Sets base directory for all Hot Restart stores.
|
HotRestartPersistenceConfig |
setDataLoadTimeoutSeconds(int dataLoadTimeoutSeconds)
Sets data load timeout for hot-restart process,
all members in the cluster should complete restoring their local data
before this timeout.
|
HotRestartPersistenceConfig |
setEnabled(boolean enabled)
Sets whether hot restart is enabled on this member.
|
HotRestartPersistenceConfig |
setParallelism(int parallelism)
Sets the number of Hot Restart store instances to create for one Hazelcast instance.
|
HotRestartPersistenceConfig |
setValidationTimeoutSeconds(int validationTimeoutSeconds)
Sets validation timeout for hot-restart process, includes validating
cluster members expected to join and partition table on all cluster.
|
public static final String HOT_RESTART_BASE_DIR_DEFAULT
public static final int DEFAULT_VALIDATION_TIMEOUT
public static final int DEFAULT_DATA_LOAD_TIMEOUT
public static final int DEFAULT_PARALLELISM
public boolean isEnabled()
public HotRestartPersistenceConfig setEnabled(boolean enabled)
public File getBaseDir()
public HotRestartPersistenceConfig setBaseDir(File baseDir)
baseDir
- home directorypublic int getParallelism()
public HotRestartPersistenceConfig setParallelism(int parallelism)
public int getValidationTimeoutSeconds()
public HotRestartPersistenceConfig setValidationTimeoutSeconds(int validationTimeoutSeconds)
validationTimeoutSeconds
- validation timeout in secondspublic int getDataLoadTimeoutSeconds()
public HotRestartPersistenceConfig setDataLoadTimeoutSeconds(int dataLoadTimeoutSeconds)
dataLoadTimeoutSeconds
- data load timeout in secondsCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.