Package com.hazelcast.config
Class DynamicConfigurationConfig
java.lang.Object
com.hazelcast.config.DynamicConfigurationConfig
Dynamic Configuration related configuration options.
- Since:
- 5.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default number of backup declarative configuration files to keep.static final String
Default name of the folder where backups will be kept. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns backup count.Returns backup directory where declarative configuration backups will be kept.int
hashCode()
boolean
Returns whether Dynamic Configuration Persistence is enabled on this member.setBackupCount
(int backupCount) Returns backup count.setBackupDir
(File backupDir) Sets backup directory where declarative configuration backups will be kept.setPersistenceEnabled
(boolean persistenceEnabled) Sets whether Dynamic Configuration Persistence is enabled on this member.toString()
-
Field Details
-
DEFAULT_BACKUP_DIR
Default name of the folder where backups will be kept. Note that by default this is name of the folder, and it will be in the node startup directory.- See Also:
-
DEFAULT_BACKUP_COUNT
public static final int DEFAULT_BACKUP_COUNTDefault number of backup declarative configuration files to keep.- See Also:
-
-
Constructor Details
-
DynamicConfigurationConfig
public DynamicConfigurationConfig()
-
-
Method Details
-
isPersistenceEnabled
public boolean isPersistenceEnabled()Returns whether Dynamic Configuration Persistence is enabled on this member.- Returns:
- true if Dynamic Configuration Persistence is enabled
-
setPersistenceEnabled
Sets whether Dynamic Configuration Persistence is enabled on this member.- Parameters:
persistenceEnabled
- true if enabled- Returns:
- DynamicConfigurationConfig
-
getBackupDir
Returns backup directory where declarative configuration backups will be kept.- Returns:
- backupDir
-
setBackupDir
Sets backup directory where declarative configuration backups will be kept.- Parameters:
backupDir
- can be absolute path or relative path to the node startup directory- Returns:
- DynamicConfigurationConfig
-
getBackupCount
public int getBackupCount()Returns backup count. LastbackupCount
backups will be kept.- Returns:
- backupCount
-
setBackupCount
Returns backup count. LastbackupCount
backups will be kept.- Parameters:
backupCount
- backup count- Returns:
- this DynamicConfigurationConfig
-
equals
-
hashCode
public int hashCode() -
toString
-