|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log.output.io.rotate.RotateStrategyByTimeOfDay
public class RotateStrategyByTimeOfDay
Rotation stragety based on a specific time of day.
Field Summary | |
---|---|
private long |
m_currentRotation
Time in ms that the current rotation started. |
private static long |
TIME_24_HOURS
Constant that stores the the number of ms in 24 hours. |
Constructor Summary | |
---|---|
RotateStrategyByTimeOfDay()
Rotate logs at specific time of day. |
|
RotateStrategyByTimeOfDay(long time)
Rotate logs at specific time of day. |
Method Summary | |
---|---|
boolean |
isRotationNeeded(java.lang.String data,
java.io.File file)
Check if now a log rotation is neccessary. |
void |
reset()
reset interval history counters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long TIME_24_HOURS
private long m_currentRotation
Constructor Detail |
---|
public RotateStrategyByTimeOfDay()
public RotateStrategyByTimeOfDay(long time)
time
- Offset in milliseconds into the day to perform the log rotation.Method Detail |
---|
public void reset()
reset
in interface RotateStrategy
public boolean isRotationNeeded(java.lang.String data, java.io.File file)
isRotationNeeded
in interface RotateStrategy
data
- the last message written to the log systemfile
- not used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |