T
- The type of rotation policy configuration handled by
this retention policy implementation.public interface RotationPolicy<T extends org.forgerock.opendj.server.config.server.LogRotationPolicyCfg>
Modifier and Type | Method and Description |
---|---|
void |
initializeLogRotationPolicy(T config)
Initializes this log rotation policy based on the
information in the provided rotation policy configuration.
|
boolean |
rotateFile(RotatableLogFile writer)
This method indicates if the log file should be rotated or not.
|
void initializeLogRotationPolicy(T config) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
config
- The rotation policy configuration that contains the
information to use to initialize this policy.org.forgerock.opendj.config.server.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.boolean rotateFile(RotatableLogFile writer)
writer
- the file writer to be checked.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.