Class HotRestartPersistenceConfig
- java.lang.Object
-
- com.hazelcast.config.HotRestartPersistenceConfig
-
@Deprecated public class HotRestartPersistenceConfig extends java.lang.Object
Deprecated.since 5.0 usePersistenceConfig
Configures the Hot Restart stores.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 thusHotRestartPersistenceConfig
) will be removed in a future release.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_DATA_LOAD_TIMEOUT
Deprecated.Default load timeoutstatic int
DEFAULT_PARALLELISM
Deprecated.Default level of parallelism in Hot Restart Persistence.static int
DEFAULT_VALIDATION_TIMEOUT
Deprecated.Default validation timeoutstatic java.lang.String
HOT_RESTART_BASE_DIR_DEFAULT
Deprecated.Default directory name for the Hot Restart store's home
-
Constructor Summary
Constructors Constructor Description HotRestartPersistenceConfig()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Deprecated.java.io.File
getBackupDir()
Deprecated.Base directory for hot backups.java.io.File
getBaseDir()
Deprecated.Base directory for all Hot Restart stores.HotRestartClusterDataRecoveryPolicy
getClusterDataRecoveryPolicy()
Deprecated.Returns the policy to be used when the cluster is startedint
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(java.io.File backupDir)
Deprecated.Sets base directory for all Hot Restart stores.HotRestartPersistenceConfig
setBaseDir(java.io.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 startedHotRestartPersistenceConfig
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.java.lang.String
toString()
Deprecated.
-
-
-
Field Detail
-
HOT_RESTART_BASE_DIR_DEFAULT
public static final java.lang.String HOT_RESTART_BASE_DIR_DEFAULT
Deprecated.Default directory name for the Hot Restart store's home- See Also:
- Constant Field Values
-
DEFAULT_VALIDATION_TIMEOUT
public static final int DEFAULT_VALIDATION_TIMEOUT
Deprecated.Default validation timeout- See Also:
- Constant Field Values
-
DEFAULT_DATA_LOAD_TIMEOUT
public static final int DEFAULT_DATA_LOAD_TIMEOUT
Deprecated.Default load timeout- See Also:
- Constant Field Values
-
DEFAULT_PARALLELISM
public static final int DEFAULT_PARALLELISM
Deprecated.Default level of parallelism in Hot Restart Persistence. Controls the number of Hot Restart Store instances, each operating with a single IO thread and a single GC thread.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Deprecated.Returns whether hot restart enabled on this member.- Returns:
- true if hot restart enabled, false otherwise
-
setEnabled
public HotRestartPersistenceConfig setEnabled(boolean enabled)
Deprecated.Sets whether hot restart is enabled on this member.- Returns:
- HotRestartPersistenceConfig
-
getClusterDataRecoveryPolicy
public HotRestartClusterDataRecoveryPolicy getClusterDataRecoveryPolicy()
Deprecated.Returns the policy to be used when the cluster is started- Returns:
- the policy to be used when the cluster is started
-
setClusterDataRecoveryPolicy
public HotRestartPersistenceConfig setClusterDataRecoveryPolicy(HotRestartClusterDataRecoveryPolicy clusterDataRecoveryPolicy)
Deprecated.Sets the policy to be used when the cluster is started- Parameters:
clusterDataRecoveryPolicy
- the policy to be used when the cluster is started- Returns:
- HotRestartPersistenceConfig
-
getBaseDir
public java.io.File getBaseDir()
Deprecated.Base directory for all Hot Restart stores. Can be an absolute or relative path to the node startup directory.
-
setBaseDir
public HotRestartPersistenceConfig setBaseDir(java.io.File baseDir)
Deprecated.Sets base directory for all Hot Restart stores. Can be an absolute or relative path to the node startup directory.- Parameters:
baseDir
- home directory- Returns:
- HotRestartPersistenceConfig
-
getBackupDir
public java.io.File getBackupDir()
Deprecated.Base directory for hot backups. Each new backup will be created in a separate directory inside this one. Can be an absolute or relative path to the node startup directory.
-
setBackupDir
public HotRestartPersistenceConfig setBackupDir(java.io.File backupDir)
Deprecated.Sets base directory for all Hot Restart stores.- Parameters:
backupDir
- home directory- Returns:
- HotRestartPersistenceConfig
-
getParallelism
public int getParallelism()
Deprecated.Gets the configured number of Hot Restart store instance to create for one Hazelcast instance.
-
setParallelism
public HotRestartPersistenceConfig setParallelism(int parallelism)
Deprecated.Sets the number of Hot Restart store instances to create for one Hazelcast instance.
-
getValidationTimeoutSeconds
public int getValidationTimeoutSeconds()
Deprecated.Returns configured validation timeout for hot-restart process.- Returns:
- validation timeout in seconds
-
setValidationTimeoutSeconds
public 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.- Parameters:
validationTimeoutSeconds
- validation timeout in seconds- Returns:
- HotRestartPersistenceConfig
-
getDataLoadTimeoutSeconds
public int getDataLoadTimeoutSeconds()
Deprecated.Returns configured data load timeout for hot-restart process.- Returns:
- data load timeout in seconds
-
setDataLoadTimeoutSeconds
public 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.- Parameters:
dataLoadTimeoutSeconds
- data load timeout in seconds- Returns:
- HotRestartPersistenceConfig
-
isAutoRemoveStaleData
public boolean isAutoRemoveStaleData()
Deprecated.Returns whether or not automatically removal of stale Hot Restart data is enabled.- Returns:
- whether or not automatically removal of stale data is enabled
-
setAutoRemoveStaleData
public HotRestartPersistenceConfig setAutoRemoveStaleData(boolean autoRemoveStaleData)
Deprecated.Sets whether or not automatically removal of stale Hot Restart data is enabled.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.- Parameters:
autoRemoveStaleData
-true
to enable auto-removal of stale data,false
otherwise- Returns:
- HotRestartPersistenceConfig
-
setEncryptionAtRestConfig
public HotRestartPersistenceConfig setEncryptionAtRestConfig(EncryptionAtRestConfig encryptionAtRestConfig)
Deprecated.Sets the Hot Restart Encryption at Rest configuration.- Parameters:
encryptionAtRestConfig
- the Encryption at Rest configuration- Returns:
- HotRestartPersistenceConfig§
-
getEncryptionAtRestConfig
public EncryptionAtRestConfig getEncryptionAtRestConfig()
Deprecated.Returns the Hot Restart Encryption at Rest configuration.- Returns:
- the Encryption at Rest configuration
-
equals
public final boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-