|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.util.log.output.io.rotate.RotateStrategyBySize
public class RotateStrategyBySize
Rotation stragety based on size written to log file.
Constructor Summary | |
---|---|
RotateStrategyBySize()
Rotate logs by size. |
|
RotateStrategyBySize(long maxSize)
Rotate logs by size. |
Method Summary | |
---|---|
boolean |
isRotationNeeded(String data,
File file)
Check if now a log rotation is neccessary. |
void |
reset()
reset log size written so far. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RotateStrategyBySize()
public RotateStrategyBySize(long maxSize)
maxSize
- rotate after writing max_size [byte] of messagesMethod Detail |
---|
public void reset()
reset
in interface RotateStrategy
public boolean isRotationNeeded(String data, File file)
isRotationNeeded
in interface RotateStrategy
data
- the last message written to the log systemfile
- the File that we are writing to
|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |