Interface SizeLimitLogRotationPolicyCfgClient
-
- All Superinterfaces:
ConfigurationClient
,LogRotationPolicyCfgClient
public interface SizeLimitLogRotationPolicyCfgClient extends LogRotationPolicyCfgClient
A client-side interface for reading and modifying 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 ManagedObjectDefinition<? extends SizeLimitLogRotationPolicyCfgClient,? extends SizeLimitLogRotationPolicyCfg>
definition()
Get the configuration definition associated with this Size Limit Log Rotation Policy.ValueOrExpression<Long>
getFileSizeLimit()
Gets the "file-size-limit" property.ValueOrExpression<String>
getJavaClass()
Gets the "java-class" property.void
setFileSizeLimit(ValueOrExpression<Long> value)
Sets the "file-size-limit" property.void
setJavaClass(ValueOrExpression<String> value)
Sets the "java-class" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends SizeLimitLogRotationPolicyCfgClient,? extends SizeLimitLogRotationPolicyCfg> definition()
Get the configuration definition associated with this Size Limit Log Rotation Policy.- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfaceLogRotationPolicyCfgClient
- Returns:
- Returns the configuration definition associated with this Size Limit Log Rotation Policy.
-
getFileSizeLimit
@MandatoryProperty ValueOrExpression<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.
-
setFileSizeLimit
@MandatoryProperty void setFileSizeLimit(ValueOrExpression<Long> value) throws PropertyException
Sets the "file-size-limit" property.Specifies the maximum size that a log file can reach before it is rotated.
- Parameters:
value
- The value of the "file-size-limit" property.- Throws:
PropertyException
- If the new value is invalid.
-
getJavaClass
@MandatoryProperty ValueOrExpression<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 interfaceLogRotationPolicyCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
@MandatoryProperty void setJavaClass(ValueOrExpression<String> value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the Size Limit Log Rotation Policy implementation.
- Specified by:
setJavaClass
in interfaceLogRotationPolicyCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
-