|
Openfire 3.3.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.util.log.output.io.rotate.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(String baseFileName,
int maxCount)
|
Method Summary | |
---|---|
File |
currentFile()
Get the current logfile |
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(String baseFileName, int maxCount)
Method Detail |
---|
public File currentFile()
FileStrategy
currentFile
in interface FileStrategy
public File nextFile()
nextFile
in interface FileStrategy
|
Openfire 3.3.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |