PersistenceConfig
@Deprecated public class HotRestartPersistenceConfig extends Object
Hot restart stores are used to hold copy of in-memory data in disk to be able to restart very fast without needing to load data from a central storage.
HotRestartConfig configures whether hot restart is enabled,
where disk data will be stored, should data be persisted
sync or async etc.
Note: If either, but not both, persistence (PersistenceConfig
) or
hot-restart-persistence (HotRestartPersistenceConfig
) is enabled,
Hazelcast will use the configuration of the enabled element. If both are
enabled, Hazelcast will use the persistence (PersistenceConfig
)
configuration. hot-restart-persistence element (and thus HotRestartPersistenceConfig
)
will be removed in a future release.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DATA_LOAD_TIMEOUT
Deprecated.
Default load timeout
|
static int |
DEFAULT_PARALLELISM
Deprecated.
Default level of parallelism in Hot Restart Persistence.
|
static int |
DEFAULT_VALIDATION_TIMEOUT
Deprecated.
Default validation timeout
|
static String |
HOT_RESTART_BASE_DIR_DEFAULT
Deprecated.
Default directory name for the Hot Restart store's home
|
Constructor and Description |
---|
HotRestartPersistenceConfig()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
File |
getBackupDir()
Deprecated.
Base directory for hot backups.
|
File |
getBaseDir()
Deprecated.
Base directory for all Hot Restart stores.
|
HotRestartClusterDataRecoveryPolicy |
getClusterDataRecoveryPolicy()
Deprecated.
Returns the policy to be used when the cluster is started
|
int |
getDataLoadTimeoutSeconds()
Deprecated.
Returns configured data load timeout for hot-restart process.
|
EncryptionAtRestConfig |
getEncryptionAtRestConfig()
Deprecated.
Returns the Hot Restart Encryption at Rest configuration.
|
int |
getParallelism()
Deprecated.
Gets the configured number of Hot Restart store instance to create for one Hazelcast instance.
|
int |
getValidationTimeoutSeconds()
Deprecated.
Returns configured validation timeout for hot-restart process.
|
int |
hashCode()
Deprecated.
|
boolean |
isAutoRemoveStaleData()
Deprecated.
Returns whether or not automatically removal of stale Hot Restart data is enabled.
|
boolean |
isEnabled()
Deprecated.
Returns whether hot restart enabled on this member.
|
HotRestartPersistenceConfig |
setAutoRemoveStaleData(boolean autoRemoveStaleData)
Deprecated.
Sets whether or not automatically removal of stale Hot Restart data is enabled.
|
HotRestartPersistenceConfig |
setBackupDir(File backupDir)
Deprecated.
Sets base directory for all Hot Restart stores.
|
HotRestartPersistenceConfig |
setBaseDir(File baseDir)
Deprecated.
Sets base directory for all Hot Restart stores.
|
HotRestartPersistenceConfig |
setClusterDataRecoveryPolicy(HotRestartClusterDataRecoveryPolicy clusterDataRecoveryPolicy)
Deprecated.
Sets the policy to be used when the cluster is started
|
HotRestartPersistenceConfig |
setDataLoadTimeoutSeconds(int dataLoadTimeoutSeconds)
Deprecated.
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)
Deprecated.
Sets whether hot restart is enabled on this member.
|
HotRestartPersistenceConfig |
setEncryptionAtRestConfig(EncryptionAtRestConfig encryptionAtRestConfig)
Deprecated.
Sets the Hot Restart Encryption at Rest configuration.
|
HotRestartPersistenceConfig |
setParallelism(int parallelism)
Deprecated.
Sets the number of Hot Restart store instances to create for one Hazelcast instance.
|
HotRestartPersistenceConfig |
setValidationTimeoutSeconds(int validationTimeoutSeconds)
Deprecated.
Sets validation timeout for hot-restart process, includes validating
cluster members expected to join and partition table on all cluster.
|
String |
toString()
Deprecated.
|
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 HotRestartClusterDataRecoveryPolicy getClusterDataRecoveryPolicy()
public HotRestartPersistenceConfig setClusterDataRecoveryPolicy(HotRestartClusterDataRecoveryPolicy clusterDataRecoveryPolicy)
clusterDataRecoveryPolicy
- the policy to be used when the cluster is startedpublic File getBaseDir()
public HotRestartPersistenceConfig setBaseDir(File baseDir)
baseDir
- home directorypublic File getBackupDir()
public HotRestartPersistenceConfig setBackupDir(File backupDir)
backupDir
- 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 secondspublic boolean isAutoRemoveStaleData()
public HotRestartPersistenceConfig setAutoRemoveStaleData(boolean autoRemoveStaleData)
When a member terminates or crashes when cluster state is ClusterState.ACTIVE
,
remaining members redistributes data among themselves and data persisted on terminated member's storage becomes
stale. That terminated member cannot rejoin the cluster without removing Hot Restart data.
When auto-removal of stale Hot Restart data is enabled, while restarting that member, Hot Restart data is
automatically removed and it joins the cluster as a completely new member.
Otherwise, Hot Restart data should be removed manually.
autoRemoveStaleData
- true
to enable auto-removal of stale data, false
otherwisepublic HotRestartPersistenceConfig setEncryptionAtRestConfig(EncryptionAtRestConfig encryptionAtRestConfig)
encryptionAtRestConfig
- the Encryption at Rest configurationpublic EncryptionAtRestConfig getEncryptionAtRestConfig()
Copyright © 2023 Hazelcast, Inc.. All rights reserved.