Interface FileCountLogRetentionPolicyCfg

  • All Superinterfaces:
    Configuration, LogRetentionPolicyCfg

    public interface FileCountLogRetentionPolicyCfg
    extends LogRetentionPolicyCfg
    A server-side interface for querying File Count Log Retention Policy settings.

    Retention policy based on the number of rotated log files on disk.

    • Method Detail

      • addFileCountChangeListener

        void addFileCountChangeListener​(ConfigurationChangeListener<FileCountLogRetentionPolicyCfg> listener)
        Register to be notified when this File Count Log Retention Policy is changed.
        Parameters:
        listener - The File Count Log Retention Policy configuration change listener.
      • removeFileCountChangeListener

        void removeFileCountChangeListener​(ConfigurationChangeListener<FileCountLogRetentionPolicyCfg> listener)
        Deregister an existing File Count Log Retention Policy configuration change listener.
        Parameters:
        listener - The File Count Log Retention Policy configuration change listener.
      • getJavaClass

        String getJavaClass()
        Gets the "java-class" property.

        Specifies the fully-qualified name of the Java class that provides the File Count Log Retention Policy implementation.

        Default value: org.opends.server.loggers.FileNumberRetentionPolicy

        Specified by:
        getJavaClass in interface LogRetentionPolicyCfg
        Returns:
        Returns the value of the "java-class" property.
      • getNumberOfFiles

        int getNumberOfFiles()
        Gets the "number-of-files" property.

        Specifies the number of archived log files to retain before the oldest ones are cleaned.

        Returns:
        Returns the value of the "number-of-files" property.