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