|
Log4j 1.3alpha-3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.rolling.RollingPolicySkeleton | +--org.apache.log4j.rolling.SlidingWindowRollingPolicy
The SlidingWindowRollingPolicy rolls over files
Field Summary |
Fields inherited from class org.apache.log4j.rolling.RollingPolicySkeleton |
activeFileName, compressionMode, fileNamePattern, fileNamePatternStr |
Constructor Summary | |
SlidingWindowRollingPolicy()
|
Method Summary | |
void |
activateOptions()
Activate the options that were previously set with calls to option setters. |
java.lang.String |
getActiveFileName()
If the ActiveFileName option is set, then this method simply returns the value of the option. |
int |
getMaxIndex()
|
int |
getMinIndex()
|
void |
rollover()
Rolls over log files according to implementation policy. |
void |
setMaxIndex(int maxIndex)
|
void |
setMinIndex(int minIndex)
|
Methods inherited from class org.apache.log4j.rolling.RollingPolicySkeleton |
determineCompressionMode, getFileNamePattern, getLogger, setActiveFileName, setFileNamePattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SlidingWindowRollingPolicy()
Method Detail |
public void activateOptions()
OptionHandler
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.
For example, the FileAppender has the File
and Append
options both of
which are ambigous until the other is also set.
activateOptions
in interface OptionHandler
activateOptions
in class RollingPolicySkeleton
public void rollover() throws RolloverFailure
RollingPolicy
This method is invoked by RollingFileAppender
, usually
at the behest of its TriggeringPolicy
.
RolloverFailure
- Thrown if the rollover operation fails for any
reason.public java.lang.String getActiveFileName()
public int getMaxIndex()
public int getMinIndex()
public void setMaxIndex(int maxIndex)
public void setMinIndex(int minIndex)
|
Log4j 1.3alpha-3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |