Interface FileCountLogRetentionPolicyCfgClient
- All Superinterfaces:
ConfigurationClient,LogRetentionPolicyCfgClient
A client-side interface for reading and modifying File Count Log
Retention Policy settings.
Retention policy based on the number of rotated log files on disk.
-
Method Summary
Modifier and TypeMethodDescriptionManagedObjectDefinition<? extends FileCountLogRetentionPolicyCfgClient,? extends FileCountLogRetentionPolicyCfg> Get the configuration definition associated with this File Count Log Retention Policy.Gets the "java-class" property.Gets the "number-of-files" property.voidsetJavaClass(ValueOrExpression<String> value) Sets the "java-class" property.voidsetNumberOfFiles(ValueOrExpression<Integer> value) Sets the "number-of-files" property.Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
Method Details
-
definition
ManagedObjectDefinition<? extends FileCountLogRetentionPolicyCfgClient,? extends FileCountLogRetentionPolicyCfg> definition()Get the configuration definition associated with this File Count Log Retention Policy.- Specified by:
definitionin interfaceConfigurationClient- Specified by:
definitionin interfaceLogRetentionPolicyCfgClient- Returns:
- Returns the configuration definition associated with this File Count Log Retention Policy.
-
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:
getJavaClassin interfaceLogRetentionPolicyCfgClient- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the File Count Log Retention Policy implementation.
- Specified by:
setJavaClassin interfaceLogRetentionPolicyCfgClient- Parameters:
value- The value of the "java-class" property.- Throws:
PropertyException- If the new value is invalid.
-
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.
-
setNumberOfFiles
Sets the "number-of-files" property.Specifies the number of archived log files to retain before the oldest ones are cleaned.
- Parameters:
value- The value of the "number-of-files" property.- Throws:
PropertyException- If the new value is invalid.
-