Class HotRestartPersistenceConfig
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.Default load timeoutstatic final int
Deprecated.Default level of parallelism in Hot Restart Persistence.static final int
Deprecated.Default validation timeoutstatic final String
Deprecated.Default directory name for the Hot Restart store's home -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Deprecated.Deprecated.Base directory for hot backups.Deprecated.Base directory for all Hot Restart stores.Deprecated.Returns the policy to be used when the cluster is startedint
Deprecated.Returns configured data load timeout for hot-restart process.Deprecated.Returns the Hot Restart Encryption at Rest configuration.int
Deprecated.Gets the configured number of Hot Restart store instance to create for one Hazelcast instance.int
Deprecated.Returns configured validation timeout for hot-restart process.final int
hashCode()
Deprecated.boolean
Deprecated.Returns whether automatic removal of stale Hot Restart data is enabled.boolean
Deprecated.Returns whether hot restart enabled on this member.setAutoRemoveStaleData
(boolean autoRemoveStaleData) Deprecated.Sets whether automatic removal of stale Hot Restart data is enabled.setBackupDir
(File backupDir) Deprecated.Sets base directory for all Hot Restart stores.setBaseDir
(File baseDir) Deprecated.Sets base directory for all Hot Restart stores.setClusterDataRecoveryPolicy
(HotRestartClusterDataRecoveryPolicy clusterDataRecoveryPolicy) Deprecated.Sets the policy to be used when the cluster is startedsetDataLoadTimeoutSeconds
(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.setEnabled
(boolean enabled) Deprecated.Sets whether hot restart is enabled on this member.setEncryptionAtRestConfig
(EncryptionAtRestConfig encryptionAtRestConfig) Deprecated.Sets the Hot Restart Encryption at Rest configuration.setParallelism
(int parallelism) Deprecated.Sets the number of Hot Restart store instances to create for one Hazelcast instance.setValidationTimeoutSeconds
(int validationTimeoutSeconds) Deprecated.Sets validation timeout for hot-restart process, includes validating cluster members expected to join and partition table on all cluster.toString()
Deprecated.
-
Field Details
-
HOT_RESTART_BASE_DIR_DEFAULT
Deprecated.Default directory name for the Hot Restart store's home- See Also:
-
DEFAULT_VALIDATION_TIMEOUT
public static final int DEFAULT_VALIDATION_TIMEOUTDeprecated.Default validation timeout- See Also:
-
DEFAULT_DATA_LOAD_TIMEOUT
public static final int DEFAULT_DATA_LOAD_TIMEOUTDeprecated.Default load timeout- See Also:
-
DEFAULT_PARALLELISM
public static final int DEFAULT_PARALLELISMDeprecated.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:
-
-
Constructor Details
-
HotRestartPersistenceConfig
public HotRestartPersistenceConfig()Deprecated.
-
-
Method Details
-
isEnabled
public boolean isEnabled()Deprecated.Returns whether hot restart enabled on this member.- Returns:
- true if hot restart enabled, false otherwise
-
setEnabled
Deprecated.Sets whether hot restart is enabled on this member.- Returns:
- HotRestartPersistenceConfig
-
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
Deprecated.Base directory for all Hot Restart stores. Can be an absolute or relative path to the node startup directory. -
setBaseDir
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
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
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
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
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
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 automatic removal of stale Hot Restart data is enabled.- Returns:
- whether automatic removal of stale data is enabled
-
setAutoRemoveStaleData
Deprecated.Sets whether automatic 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
Deprecated.Returns the Hot Restart Encryption at Rest configuration.- Returns:
- the Encryption at Rest configuration
-
equals
Deprecated. -
hashCode
public final int hashCode()Deprecated. -
toString
Deprecated.
-
PersistenceConfig