|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.rolling.SizeBasedTriggeringPolicy
Constructor Summary | |
SizeBasedTriggeringPolicy()
|
Method Summary | |
void |
activateOptions()
Activate the options that were previously set with calls to option setters. |
long |
getMaxFileSize()
|
boolean |
isTriggeringEvent(java.io.File file)
Should rolllover be triggered at this time? |
void |
setMaxFileSize(long l)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SizeBasedTriggeringPolicy()
Method Detail |
public boolean isTriggeringEvent(java.io.File file)
TriggeringPolicy
isTriggeringEvent
in interface TriggeringPolicy
file
- A reference to the currently active log file.public long getMaxFileSize()
public void setMaxFileSize(long l)
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
|
Log4j 1.3alpha-1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |