|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.x4juli.global.components.AbstractComponent
org.x4juli.handlers.rolling.AbstractRollingPolicy
Implements methods common to most, it not all, rolling policies. Currently such methods are limited to a compression mode getter/setter.
Logging API as a whole was originally done for Apache log4j. Juli is a port of main parts of that to complete the Java Logging APIs. All credits for initial idea, design, implementation, documentation belong to the log4j crew. This file was originally published by Ceki Gülcü, Curt Arnold. Please use exclusively the appropriate mailing lists for questions, remarks and contribution.
| Field Summary | |
protected java.lang.String |
activeFileName
Active file name may be null. |
private java.lang.String |
fileNamePatternStr
File name pattern. |
private PatternConverter[] |
patternConverters
File name pattern converters. |
private FormattingInfo[] |
patternFields
File name field specifiers. |
| Fields inherited from class org.x4juli.global.components.AbstractComponent |
manager, repository |
| Constructor Summary | |
protected |
AbstractRollingPolicy()
Constructor for use with file based configuration. |
protected |
AbstractRollingPolicy(java.lang.String fileNamePattern)
Constructor for use in programmatically configuration. |
| Method Summary | |
void |
activateOptions()
Activate the options that were previously set with calls to option setters. This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set. |
void |
configure()
Configure all properties of the object. |
protected void |
formatFileName(java.lang.Object obj,
java.lang.StringBuffer buf)
Format file name. |
protected PatternConverter |
getDatePatternConverter()
Returns the first occuring DatePatternConverter in the
pattern Converter array. |
java.lang.String |
getFileNamePattern()
Get file name pattern. |
protected PatternConverter |
getIntegerPatternConverter()
Returns the first occuring IntegerPatternConverter in the
pattern Converter array. |
MessageProperties |
getMessageProperties()
Specifiy Properties for the component. Default Implementation returns null. |
protected void |
parseFileNamePattern()
Parse file name pattern. |
void |
setFileNamePattern(java.lang.String fnp)
Set file name pattern. |
java.lang.String |
toString()
|
| Methods inherited from class org.x4juli.global.components.AbstractComponent |
getLogger, getLoggerRepository, getNonFloodingLogger, getProperty, getProperty, getProperty, getProperty, resetErrorCount, setObjectStore |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.x4juli.handlers.rolling.RollingPolicy |
initialize, rollover |
| Field Detail |
private PatternConverter[] patternConverters
private FormattingInfo[] patternFields
private java.lang.String fileNamePatternStr
protected java.lang.String activeFileName
| Constructor Detail |
protected AbstractRollingPolicy()
protected AbstractRollingPolicy(java.lang.String fileNamePattern)
fileNamePattern - pattern to determine the filename.| Method Detail |
public void activateOptions()
This allows to defer activiation of the options until all options have been set. This is required for components which have related options that remain ambigous until all are set.
activateOptions in interface OptionHandlerpublic void configure()
public void setFileNamePattern(java.lang.String fnp)
fnp - file name pattern.public java.lang.String getFileNamePattern()
public MessageProperties getMessageProperties()
getMessageProperties in interface ComponentgetMessageProperties in class AbstractComponentpublic java.lang.String toString()
protected final void parseFileNamePattern()
protected final void formatFileName(java.lang.Object obj,
java.lang.StringBuffer buf)
obj - object to be evaluted in formatting, may not be null.buf - string buffer to which formatted file name is appended, may
not be null.protected final PatternConverter getDatePatternConverter()
DatePatternConverter in the
pattern Converter array.
protected final PatternConverter getIntegerPatternConverter()
IntegerPatternConverter in the
pattern Converter array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||