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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intDeprecated.Default load timeoutstatic final intDeprecated.Default level of parallelism in Hot Restart Persistence.static final intDeprecated.Default validation timeoutstatic final StringDeprecated.Default directory name for the Hot Restart store's home
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanDeprecated.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 startedintDeprecated.Returns configured data load timeout for hot-restart process.Deprecated.Returns the Hot Restart Encryption at Rest configuration.intDeprecated.Gets the configured number of Hot Restart store instance to create for one Hazelcast instance.intDeprecated.Returns configured validation timeout for hot-restart process.final inthashCode()Deprecated.booleanDeprecated.Returns whether automatic removal of stale Hot Restart data is enabled.booleanDeprecated.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_DEFAULTDeprecated.Default directory name for the Hot Restart store's home- See Also:
 
- 
DEFAULT_VALIDATION_TIMEOUTpublic static final int DEFAULT_VALIDATION_TIMEOUTDeprecated.Default validation timeout- See Also:
 
- 
DEFAULT_DATA_LOAD_TIMEOUTpublic static final int DEFAULT_DATA_LOAD_TIMEOUTDeprecated.Default load timeout- See Also:
 
- 
DEFAULT_PARALLELISMpublic 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- 
HotRestartPersistenceConfigpublic HotRestartPersistenceConfig()Deprecated.
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()Deprecated.Returns whether hot restart enabled on this member.- Returns:
- true if hot restart enabled, false otherwise
 
- 
setEnabledDeprecated.Sets whether hot restart is enabled on this member.- Returns:
- HotRestartPersistenceConfig
 
- 
getClusterDataRecoveryPolicyDeprecated.Returns the policy to be used when the cluster is started- Returns:
- the policy to be used when the cluster is started
 
- 
setClusterDataRecoveryPolicypublic 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
 
- 
getBaseDirDeprecated.Base directory for all Hot Restart stores. Can be an absolute or relative path to the node startup directory.
- 
setBaseDirDeprecated.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
 
- 
getBackupDirDeprecated.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.
- 
setBackupDirDeprecated.Sets base directory for all Hot Restart stores.- Parameters:
- backupDir- home directory
- Returns:
- HotRestartPersistenceConfig
 
- 
getParallelismpublic int getParallelism()Deprecated.Gets the configured number of Hot Restart store instance to create for one Hazelcast instance.
- 
setParallelismDeprecated.Sets the number of Hot Restart store instances to create for one Hazelcast instance.
- 
getValidationTimeoutSecondspublic int getValidationTimeoutSeconds()Deprecated.Returns configured validation timeout for hot-restart process.- Returns:
- validation timeout in seconds
 
- 
setValidationTimeoutSecondsDeprecated.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
 
- 
getDataLoadTimeoutSecondspublic int getDataLoadTimeoutSeconds()Deprecated.Returns configured data load timeout for hot-restart process.- Returns:
- data load timeout in seconds
 
- 
setDataLoadTimeoutSecondsDeprecated.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
 
- 
isAutoRemoveStaleDatapublic boolean isAutoRemoveStaleData()Deprecated.Returns whether automatic removal of stale Hot Restart data is enabled.- Returns:
- whether automatic removal of stale data is enabled
 
- 
setAutoRemoveStaleDataDeprecated.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-- trueto enable auto-removal of stale data,- falseotherwise
- Returns:
- HotRestartPersistenceConfig
 
- 
setEncryptionAtRestConfigpublic HotRestartPersistenceConfig setEncryptionAtRestConfig(EncryptionAtRestConfig encryptionAtRestConfig) Deprecated.Sets the Hot Restart Encryption at Rest configuration.- Parameters:
- encryptionAtRestConfig- the Encryption at Rest configuration
- Returns:
- HotRestartPersistenceConfig§
 
- 
getEncryptionAtRestConfigDeprecated.Returns the Hot Restart Encryption at Rest configuration.- Returns:
- the Encryption at Rest configuration
 
- 
equalsDeprecated.
- 
hashCodepublic final int hashCode()Deprecated.
- 
toStringDeprecated.
 
- 
PersistenceConfig