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.void
setJavaClass
(ValueOrExpression<String> value) Sets the "java-class" property.void
setNumberOfFiles
(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:
definition
in interfaceConfigurationClient
- Specified by:
definition
in 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:
getJavaClass
in 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:
setJavaClass
in 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.
-