public interface SizeLimitLogRotationPolicyCfg extends LogRotationPolicyCfg
Rotation policy based on the size of the log file.
Modifier and Type | Method and Description |
---|---|
void |
addSizeLimitChangeListener(ConfigurationChangeListener<SizeLimitLogRotationPolicyCfg> listener)
Register to be notified when this Size Limit Log Rotation Policy is changed.
|
Class<? extends SizeLimitLogRotationPolicyCfg> |
configurationClass()
Gets the configuration class associated with this Size Limit Log Rotation Policy.
|
long |
getFileSizeLimit()
Gets the "file-size-limit" property.
|
String |
getJavaClass()
Gets the "java-class" property.
|
void |
removeSizeLimitChangeListener(ConfigurationChangeListener<SizeLimitLogRotationPolicyCfg> listener)
Deregister an existing Size Limit Log Rotation Policy configuration change listener.
|
addChangeListener, removeChangeListener
dn
Class<? extends SizeLimitLogRotationPolicyCfg> configurationClass()
configurationClass
in interface Configuration
configurationClass
in interface LogRotationPolicyCfg
void addSizeLimitChangeListener(ConfigurationChangeListener<SizeLimitLogRotationPolicyCfg> listener)
listener
- The Size Limit Log Rotation Policy configuration change listener.void removeSizeLimitChangeListener(ConfigurationChangeListener<SizeLimitLogRotationPolicyCfg> listener)
listener
- The Size Limit Log Rotation Policy configuration change listener.long getFileSizeLimit()
Specifies the maximum size that a log file can reach before it is rotated.
String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the Size Limit Log Rotation Policy implementation.
getJavaClass
in interface LogRotationPolicyCfg
Copyright 2010-2017 ForgeRock AS.