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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFileCountChangeListener(ConfigurationChangeListener<FileCountLogRetentionPolicyCfg> listener)Register to be notified when this File Count Log Retention Policy is changed.Class<? extends FileCountLogRetentionPolicyCfg>configurationClass()Gets the configuration class associated with this File Count Log Retention Policy.StringgetJavaClass()Gets the "java-class" property.intgetNumberOfFiles()Gets the "number-of-files" property.voidremoveFileCountChangeListener(ConfigurationChangeListener<FileCountLogRetentionPolicyCfg> listener)Deregister an existing File Count Log Retention Policy configuration change listener.-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
Methods inherited from interface org.forgerock.opendj.server.config.server.LogRetentionPolicyCfg
addChangeListener, removeChangeListener
-
-
-
-
Method Detail
-
configurationClass
Class<? extends FileCountLogRetentionPolicyCfg> configurationClass()
Gets the configuration class associated with this File Count Log Retention Policy.- Specified by:
configurationClassin interfaceConfiguration- Specified by:
configurationClassin interfaceLogRetentionPolicyCfg- 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.
- Specified by:
getJavaClassin interfaceLogRetentionPolicyCfg- 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.
-
-