Interface SizeLimitLogRotationPolicyCfg
-
- All Superinterfaces:
Configuration
,LogRotationPolicyCfg
public interface SizeLimitLogRotationPolicyCfg extends LogRotationPolicyCfg
A server-side interface for querying Size Limit Log Rotation Policy settings.Rotation policy based on the size of the log file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface org.forgerock.opendj.config.Configuration
dn, name
-
Methods inherited from interface org.forgerock.opendj.server.config.server.LogRotationPolicyCfg
addChangeListener, removeChangeListener
-
-
-
-
Method Detail
-
configurationClass
Class<? extends SizeLimitLogRotationPolicyCfg> configurationClass()
Gets the configuration class associated with this Size Limit Log Rotation Policy.- Specified by:
configurationClass
in interfaceConfiguration
- Specified by:
configurationClass
in interfaceLogRotationPolicyCfg
- Returns:
- Returns the configuration class associated with this Size Limit Log Rotation Policy.
-
addSizeLimitChangeListener
void addSizeLimitChangeListener(ConfigurationChangeListener<SizeLimitLogRotationPolicyCfg> listener)
Register to be notified when this Size Limit Log Rotation Policy is changed.- Parameters:
listener
- The Size Limit Log Rotation Policy configuration change listener.
-
removeSizeLimitChangeListener
void removeSizeLimitChangeListener(ConfigurationChangeListener<SizeLimitLogRotationPolicyCfg> listener)
Deregister an existing Size Limit Log Rotation Policy configuration change listener.- Parameters:
listener
- The Size Limit Log Rotation Policy configuration change listener.
-
getFileSizeLimit
long getFileSizeLimit()
Gets the "file-size-limit" property.Specifies the maximum size that a log file can reach before it is rotated.
- Returns:
- Returns the value of the "file-size-limit" property.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Size Limit Log Rotation Policy implementation.
Default value:
org.opends.server.loggers.SizeBasedRotationPolicy
- Specified by:
getJavaClass
in interfaceLogRotationPolicyCfg
- Returns:
- Returns the value of the "java-class" property.
-
-