|
Openfire 3.3.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.util.log.output.io.rotate.RotateStrategyByTime
public class RotateStrategyByTime
rotation stragety based when log writting started.
| Constructor Summary | |
|---|---|
RotateStrategyByTime()
Rotate logs by time. |
|
RotateStrategyByTime(long timeInterval)
Rotate logs by time. |
|
| Method Summary | |
|---|---|
boolean |
isRotationNeeded(String data,
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 |
| Constructor Detail |
|---|
public RotateStrategyByTime()
public RotateStrategyByTime(long timeInterval)
timeInterval - rotate after time-interval [ms] has expired| Method Detail |
|---|
public void reset()
reset in interface RotateStrategy
public boolean isRotationNeeded(String data,
File file)
(current_time - m_startingTime) / m_timeInterval > m_currentRotation
rotation is needed.
isRotationNeeded in interface RotateStrategydata - the last message written to the log systemfile - the File that we are writing to
|
Openfire 3.3.2 Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||