Class DynamicConfigurationConfig


  • public class DynamicConfigurationConfig
    extends java.lang.Object
    Dynamic Configuration related configuration options.
    Since:
    5.1
    • 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
    • Constructor Detail

      • DynamicConfigurationConfig

        public DynamicConfigurationConfig()
    • 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. Last backupCount backups will be kept.
        Returns:
        backupCount
      • setBackupCount

        @Nonnull
        public DynamicConfigurationConfig setBackupCount​(int backupCount)
        Returns backup count. Last backupCount backups will be kept.
        Parameters:
        backupCount - backup count
        Returns:
        this DynamicConfigurationConfig
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object