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 Details

    • configurationClass

      Class<? extends FileCountLogRetentionPolicyCfg> configurationClass()
      Gets the configuration class associated with this File Count Log Retention Policy.
      Specified by:
      configurationClass in interface Configuration
      Specified by:
      configurationClass in interface LogRetentionPolicyCfg
      Returns:
      Returns the configuration class associated with this File Count Log Retention Policy.
    • 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.