uk.org.simonsite.log4j.appender
Class AbstractRoller

java.lang.Object
  extended by uk.org.simonsite.log4j.appender.AbstractRoller
All Implemented Interfaces:
FileRollable
Direct Known Subclasses:
FileSizeRoller, OneShotStartupRoller, TimeBasedRoller

abstract class AbstractRoller
extends Object
implements FileRollable

Base class for roller implementations, this has responsibility only for performing the actual file roll. Subclasses have responsibility for deciding whether a roll is required, and for computing the time used to perform the roll.

Version:
2.0
Author:
Simon Park

Constructor Summary
AbstractRoller(TimeAndSizeRollingAppender rollingAppender)
           
 
Method Summary
(package private)  TimeAndSizeRollingAppender getAppender()
           
(package private)  AppenderRollingProperties getProperties()
           
(package private)  void roll(long timeForSuffix)
          Invoked by subclasses; delegates actual file roll.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.org.simonsite.log4j.appender.FileRollable
roll
 

Constructor Detail

AbstractRoller

AbstractRoller(TimeAndSizeRollingAppender rollingAppender)
Method Detail

getAppender

final TimeAndSizeRollingAppender getAppender()

getProperties

final AppenderRollingProperties getProperties()

roll

final void roll(long timeForSuffix)
Invoked by subclasses; delegates actual file roll.