Interface FileCountLogRetentionPolicyCfg
- All Superinterfaces:
Configuration
,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
Modifier and TypeMethodDescriptionvoid
Register to be notified when this File Count Log Retention Policy is changed.Class<? extends FileCountLogRetentionPolicyCfg>
Gets the configuration class associated with this File Count Log Retention Policy.Gets the "java-class" property.int
Gets the "number-of-files" property.void
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 Details
-
configurationClass
Class<? extends FileCountLogRetentionPolicyCfg> configurationClass()Gets the configuration class associated with this File Count Log Retention Policy.- Specified by:
configurationClass
in interfaceConfiguration
- Specified by:
configurationClass
in 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.
Default value:
org.opends.server.loggers.FileNumberRetentionPolicy
- Specified by:
getJavaClass
in 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.
-