Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base.log
Class RevolvingFileStrategy

java.lang.Object
  extended by com.jivesoftware.base.log.RevolvingFileStrategy
All Implemented Interfaces:
FileStrategy

public class RevolvingFileStrategy
extends java.lang.Object
implements FileStrategy

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

RevolvingFileStrategy

public RevolvingFileStrategy(java.lang.String baseFileName,
                             int maxCount)
Method Detail

currentFile

public java.io.File currentFile()
Description copied from interface: FileStrategy
Get the current logfile

Specified by:
currentFile in interface FileStrategy

nextFile

public java.io.File nextFile()
Calculate the real file name from the base filename.

Specified by:
nextFile in interface FileStrategy
Returns:
File the calculated file name

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.