Interface AccessLog
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,org.jvnet.hk2.config.types.PropertyBag
public interface AccessLog
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag
Access log configuration.
-
Method Summary
Modifier and TypeMethodDescriptionSize in bytes of the buffer where access log calls are stored.Gets the value of theformatattribute, which specifies the format of the access log.@NotNull StringGets the maximum number of rotated access log files that are to be kept.Gets the value of therotation-enabledattribute.@Min(1L) @Max(2147483647L) StringGets the value of therotation-interval-in-minutesattribute.Gets the value of therotation-policyattribute.Gets the value of therotation-suffixattribute.Number of seconds before the log is written to the disk.voidsetBufferSizeBytes(String bufferSize) voidSets the value of theformatattribute.voidsetMaxHistoryFiles(String maxHistoryFiles) Sets the maximum number of rotated access log files that are to be kept.voidsetRotationEnabled(String rotationEnabled) Sets the value of therotation-enabledattribute.voidsetRotationIntervalInMinutes(String rotationInterval) Sets the value of therotation-interval-in-minutesattribute.voidsetRotationPolicy(String rotationPolicy) Sets the value of therotation-policyattribute.voidsetRotationSuffix(String rotationSuffix) Sets the value of therotation-suffixattribute.voidsetWriteIntervalSeconds(String writeInterval) Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Method Details
-
getFormat
String getFormat()Gets the value of theformatattribute, which specifies the format of the access log.- Returns:
- possible object is
String
-
setFormat
Sets the value of theformatattribute.- Parameters:
format- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getRotationPolicy
String getRotationPolicy()Gets the value of therotation-policyattribute.- Returns:
- possible object is
String
-
setRotationPolicy
Sets the value of therotation-policyattribute.- Parameters:
rotationPolicy- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getRotationIntervalInMinutes
Gets the value of therotation-interval-in-minutesattribute.The time interval in minutes between two successive rotations of the access logs.
- Returns:
- possible object is
String
-
setRotationIntervalInMinutes
Sets the value of therotation-interval-in-minutesattribute.- Parameters:
rotationInterval- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getRotationSuffix
String getRotationSuffix()Gets the value of therotation-suffixattribute.The suffix to be added to the
access-logname after rotation. Acceptable values include those supported bySimpleDateFormatand "%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s".- Returns:
- possible object is
String
-
setRotationSuffix
Sets the value of therotation-suffixattribute.- Parameters:
rotationSuffix- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getRotationEnabled
String getRotationEnabled()Gets the value of therotation-enabledattribute.The flag for enabling the
access-logrotation.- Returns:
- possible object is
String
-
setRotationEnabled
Sets the value of therotation-enabledattribute.- Parameters:
rotationEnabled- allowed object isString- Throws:
PropertyVetoException- if a listener vetoes the change
-
getBufferSizeBytes
String getBufferSizeBytes()Size in bytes of the buffer where access log calls are stored. If the value is less than5120, a warning message is issued, and the value is set to5120- Returns:
- the buffer size
-
setBufferSizeBytes
-
getWriteIntervalSeconds
String getWriteIntervalSeconds()Number of seconds before the log is written to the disk. The access log is written when the buffer is full or when the interval expires. If the value is0, the buffer is always written even if it is not full. This means that each time the server is accessed, the log message is stored directly to the file.- Returns:
- the write interval in seconds
-
setWriteIntervalSeconds
-
getMaxHistoryFiles
Gets the maximum number of rotated access log files that are to be kept.A negative value must be interpreted as no limit.
- Returns:
- the max number of log files
-
setMaxHistoryFiles
Sets the maximum number of rotated access log files that are to be kept.- Parameters:
maxHistoryFiles- the maximum number of log files- Throws:
PropertyVetoException- if a listener vetoes the change
-