com.sun.enterprise.config.serverbeans
Interface AccessLog

All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, org.jvnet.hk2.config.types.PropertyBag

public interface AccessLog
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.component.Injectable, org.jvnet.hk2.config.types.PropertyBag

Access log configuration


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
org.jvnet.hk2.config.ConfigBeanProxy.Duck
 
Nested classes/interfaces inherited from interface org.jvnet.hk2.config.types.PropertyBag
org.jvnet.hk2.config.types.PropertyBag.Duck
 
Method Summary
 java.lang.String getBufferSizeBytes()
          Size in bytes of the buffer where access log calls are stored.
 java.lang.String getFormat()
          Gets the value of the format attribute, which specifies the format of the access log.
 java.lang.String getMaxHistoryFiles()
          Gets the maximum number of rotated access log files that are to be kept.
 java.lang.String getRotationEnabled()
          Gets the value of the rotation-enabled attribute.
 java.lang.String getRotationIntervalInMinutes()
          Gets the value of the rotation-interval-in-minutes attribute.
 java.lang.String getRotationPolicy()
          Gets the value of the rotation-policy attribute.
 java.lang.String getRotationSuffix()
          Gets the value of the rotation-suffix attribute.
 java.lang.String getWriteIntervalSeconds()
          Number of seconds before the log is written to the disk.
 void setBufferSizeBytes(java.lang.String value)
           
 void setFormat(java.lang.String value)
          Sets the value of the format attribute.
 void setMaxHistoryFiles(java.lang.String value)
          Sets the maximum number of rotated access log files that are to be kept.
 void setRotationEnabled(java.lang.String value)
          Sets the value of the rotation-enabled attribute.
 void setRotationIntervalInMinutes(java.lang.String value)
          Sets the value of the rotation-interval-in-minutes attribute.
 void setRotationPolicy(java.lang.String value)
          Sets the value of the rotation-policy attribute.
 void setRotationSuffix(java.lang.String value)
          Sets the value of the rotation-suffix attribute.
 void setWriteIntervalSeconds(java.lang.String value)
           
 
Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParent
 
Methods inherited from interface org.jvnet.hk2.component.Injectable
injectedInto
 
Methods inherited from interface org.jvnet.hk2.config.types.PropertyBag
getProperty, getProperty, getPropertyValue, getPropertyValue
 

Method Detail

getFormat

java.lang.String getFormat()
Gets the value of the format attribute, which specifies the format of the access log.

Returns:
possible object is String

setFormat

void setFormat(java.lang.String value)
               throws java.beans.PropertyVetoException
Sets the value of the format attribute.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException - if a listener vetoes the change

getRotationPolicy

java.lang.String getRotationPolicy()
Gets the value of the rotation-policy attribute.

Returns:
possible object is String

setRotationPolicy

void setRotationPolicy(java.lang.String value)
                       throws java.beans.PropertyVetoException
Sets the value of the rotation-policy attribute.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException - if a listener vetoes the change

getRotationIntervalInMinutes

@Min(value=1L)
@Max(value=2147483647L)
java.lang.String getRotationIntervalInMinutes()
Gets the value of the rotation-interval-in-minutes attribute. The time interval in minutes between two successive rotations of the access logs.

Returns:
possible object is String

setRotationIntervalInMinutes

void setRotationIntervalInMinutes(java.lang.String value)
                                  throws java.beans.PropertyVetoException
Sets the value of the rotation-interval-in-minutes attribute.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException - if a listener vetoes the change

getRotationSuffix

java.lang.String getRotationSuffix()
Gets the value of the rotation-suffix attribute. The suffix to be added to the access-log name after rotation. Acceptable values include those supported by java.text.SimpleDateFormat and "%YYYY;%MM;%DD;-%hh;h%mm;m%ss;s".

Returns:
possible object is String

setRotationSuffix

void setRotationSuffix(java.lang.String value)
                       throws java.beans.PropertyVetoException
Sets the value of the rotation-suffix attribute.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException - if a listener vetoes the change

getRotationEnabled

java.lang.String getRotationEnabled()
Gets the value of the rotation-enabled attribute. The flag for enabling the access-log rotation

Returns:
possible object is String

setRotationEnabled

void setRotationEnabled(java.lang.String value)
                        throws java.beans.PropertyVetoException
Sets the value of the rotation-enabled attribute.

Parameters:
value - allowed object is String
Throws:
java.beans.PropertyVetoException - if a listener vetoes the change

getBufferSizeBytes

java.lang.String getBufferSizeBytes()
Size in bytes of the buffer where access log calls are stored. If the value is less than 5120, a warning message is issued, and the value is set to 5120

Returns:
the buffer-size

setBufferSizeBytes

void setBufferSizeBytes(java.lang.String value)

getWriteIntervalSeconds

java.lang.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 is 0, 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

void setWriteIntervalSeconds(java.lang.String value)

getMaxHistoryFiles

@NotNull
java.lang.String 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

void setMaxHistoryFiles(java.lang.String value)
                        throws java.beans.PropertyVetoException
Sets the maximum number of rotated access log files that are to be kept.

Parameters:
value - the maximum number of log files
Throws:
java.beans.PropertyVetoException - if a listener vetoes the change


Copyright © 2012 GlassFish Community. All Rights Reserved.