|
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.RevolvingFileStrategy
public class RevolvingFileStrategy
strategy for naming log files based on appending revolving suffix. Heavily odified by Bruce Ritchie (Jive Software) to rotate along the following strategy: current log file will always be the base File name the next oldest file will be the _1 file the next oldest file will be the _2 file etc.
Constructor Summary | |
---|---|
RevolvingFileStrategy(java.lang.String baseFileName,
int maxCount)
|
Method Summary | |
---|---|
java.io.File |
currentFile()
Get the current logfile |
java.io.File |
nextFile()
Calculate the real file name from the base filename. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RevolvingFileStrategy(java.lang.String baseFileName, int maxCount)
Method Detail |
---|
public java.io.File currentFile()
FileStrategy
currentFile
in interface FileStrategy
public java.io.File nextFile()
nextFile
in interface FileStrategy
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |