public class FixedTimeRotationPolicy extends Object implements RotationPolicy<org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg>, org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg>
Constructor and Description |
---|
FixedTimeRotationPolicy() |
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg config) |
void |
initializeLogRotationPolicy(org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg config)
Initializes this log rotation policy based on the
information in the provided rotation policy configuration.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg config,
List<LocalizableMessage> unacceptableReasons) |
boolean |
rotateFile(RotatableLogFile writer)
This method indicates if the log file should be rotated or not.
|
public FixedTimeRotationPolicy()
public void initializeLogRotationPolicy(org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg config)
RotationPolicy
initializeLogRotationPolicy
in interface RotationPolicy<org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg>
config
- The rotation policy configuration that contains the
information to use to initialize this policy.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg config, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg config)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg>
public boolean rotateFile(RotatableLogFile writer)
RotationPolicy
rotateFile
in interface RotationPolicy<org.forgerock.opendj.server.config.server.FixedTimeLogRotationPolicyCfg>
writer
- the file writer to be checked.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.