T
- The type of retention policy configuration handled by this retention policy implementation.public interface RetentionPolicy<T extends LogRetentionPolicyCfg>
Modifier and Type | Method and Description |
---|---|
File[] |
deleteFiles(org.opends.server.loggers.FileNamingPolicy fileNamingPolicy)
Returns all files that should be deleted according to the policy.
|
void |
initializeLogRetentionPolicy(T config)
Initializes this log retention policy based on the information in the provided retention policy configuration.
|
void initializeLogRetentionPolicy(T config) throws ConfigException, InitializationException
config
- The retention policy configuration that contains the information to use to initialize this policy.ConfigException
- If an unrecoverable problem arises in the process of performing the initialization as a result of the
server configuration.InitializationException
- If a problem occurs during initialization that is not related to the server configuration.File[] deleteFiles(org.opends.server.loggers.FileNamingPolicy fileNamingPolicy) throws DirectoryException
fileNamingPolicy
- The naming policy used generate the log file names.null
if an error
occurred while obtaining the file list.DirectoryException
- If an error occurs while obtaining a list of files to delete.Copyright 2010-2020 ForgeRock AS.