Package com.hazelcast.config
Class DynamicConfigurationConfig
- java.lang.Object
-
- com.hazelcast.config.DynamicConfigurationConfig
-
public class DynamicConfigurationConfig extends java.lang.Object
Dynamic Configuration related configuration options.- Since:
- 5.1
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BACKUP_COUNT
Default number of backup declarative configuration files to keep.static java.lang.String
DEFAULT_BACKUP_DIR
Default name of the folder where backups will be kept.
-
Constructor Summary
Constructors Constructor Description DynamicConfigurationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getBackupCount()
Returns backup count.java.io.File
getBackupDir()
Returns backup directory where declarative configuration backups will be kept.int
hashCode()
boolean
isPersistenceEnabled()
Returns whether Dynamic Configuration Persistence is enabled on this member.DynamicConfigurationConfig
setBackupCount(int backupCount)
Returns backup count.DynamicConfigurationConfig
setBackupDir(java.io.File backupDir)
Sets backup directory where declarative configuration backups will be kept.DynamicConfigurationConfig
setPersistenceEnabled(boolean persistenceEnabled)
Sets whether Dynamic Configuration Persistence is enabled on this member.java.lang.String
toString()
-
-
-
Field Detail
-
DEFAULT_BACKUP_DIR
public static final java.lang.String 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:
- Constant Field Values
-
DEFAULT_BACKUP_COUNT
public static final int DEFAULT_BACKUP_COUNT
Default number of backup declarative configuration files to keep.- See Also:
- Constant Field Values
-
-
Method Detail
-
isPersistenceEnabled
public boolean isPersistenceEnabled()
Returns whether Dynamic Configuration Persistence is enabled on this member.- Returns:
- true if Dynamic Configuration Persistence is enabled
-
setPersistenceEnabled
@Nonnull public DynamicConfigurationConfig setPersistenceEnabled(boolean persistenceEnabled)
Sets whether Dynamic Configuration Persistence is enabled on this member.- Parameters:
persistenceEnabled
- true if enabled- Returns:
- DynamicConfigurationConfig
-
getBackupDir
@Nonnull public java.io.File getBackupDir()
Returns backup directory where declarative configuration backups will be kept.- Returns:
- backupDir
-
setBackupDir
@Nonnull public DynamicConfigurationConfig setBackupDir(@Nonnull java.io.File backupDir)
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
@Nonnull public DynamicConfigurationConfig setBackupCount(int backupCount)
Returns backup count. LastbackupCount
backups will be kept.- Parameters:
backupCount
- backup count- Returns:
- this DynamicConfigurationConfig
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-