|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.log.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 | |
---|---|
void |
initializeSize(java.io.File file)
Initializes the size of the strategy from the length of the given file. |
boolean |
isRotationNeeded(java.lang.String data,
java.io.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 initializeSize(java.io.File file)
initializeSize
in interface RotateStrategy
file
- the File that will be written topublic 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
- the File that we are writing to
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |