|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.log.output.io.rotate.RotateStrategyByDate
Rotation stragety based on SimpleDateFormat.
| Constructor Summary | |
RotateStrategyByDate()
Creation of a new rotation strategy based on a date policy. |
|
RotateStrategyByDate(String pattern)
Creation of a new rotation strategy based on a date policy using a supplied pattern. |
|
| Method Summary | |
boolean |
isRotationNeeded(String data,
File file)
Test is a rotation is required. |
void |
reset()
Reset the strategy. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RotateStrategyByDate()
public RotateStrategyByDate(String pattern)
pattern - the message formatting pattern| Method Detail |
public void reset()
reset in interface RotateStrategy
public boolean isRotationNeeded(String data,
File file)
isRotationNeeded in interface RotateStrategydata - not usedfile - not used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||