ch.qos.logback.core.rolling
Class SizeAndTimeBasedFNATP<E>

java.lang.Object
  extended by ch.qos.logback.core.spi.ContextAwareBase
      extended by ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase<E>
          extended by ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP<E>
All Implemented Interfaces:
TimeBasedFileNamingAndTriggeringPolicy<E>, TriggeringPolicy<E>, ContextAware, LifeCycle

public class SizeAndTimeBasedFNATP<E>
extends TimeBasedFileNamingAndTriggeringPolicyBase<E>


Field Summary
 
Fields inherited from class ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase
archiveRemover, artificialCurrentTime, dateInCurrentPeriod, elapsedPeriodsFileName, nextCheck, rc, started, tbrp
 
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
 
Constructor Summary
SizeAndTimeBasedFNATP()
           
 
Method Summary
 String getCurrentPeriodsFileNameWithoutCompressionSuffix()
          Return the current periods file name without the compression suffix.
 String getMaxFileSize()
           
 boolean isTriggeringEvent(File activeFile, E event)
          Should roll-over be triggered at this time?
 void setMaxFileSize(String maxFileSize)
           
 void start()
           
 
Methods inherited from class ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase
computeNextCheck, getArchiveRemover, getCurrentTime, getElapsedPeriodsFileName, isStarted, setCurrentTime, setDateInCurrentPeriod, setDateInCurrentPeriod, setTimeBasedRollingPolicy, stop
 
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
 

Constructor Detail

SizeAndTimeBasedFNATP

public SizeAndTimeBasedFNATP()
Method Detail

start

public void start()
Specified by:
start in interface LifeCycle
Overrides:
start in class TimeBasedFileNamingAndTriggeringPolicyBase<E>

isTriggeringEvent

public boolean isTriggeringEvent(File activeFile,
                                 E event)
Description copied from interface: TriggeringPolicy
Should roll-over be triggered at this time?

Parameters:
activeFile - A reference to the currently active log file.
event - A reference to the currently event.
Returns:
true if a roll-over should occur.

getCurrentPeriodsFileNameWithoutCompressionSuffix

public String getCurrentPeriodsFileNameWithoutCompressionSuffix()
Description copied from interface: TimeBasedFileNamingAndTriggeringPolicy
Return the current periods file name without the compression suffix. This value is equivalent to the active file name.

Specified by:
getCurrentPeriodsFileNameWithoutCompressionSuffix in interface TimeBasedFileNamingAndTriggeringPolicy<E>
Overrides:
getCurrentPeriodsFileNameWithoutCompressionSuffix in class TimeBasedFileNamingAndTriggeringPolicyBase<E>
Returns:
current period's file name (without compression suffix)

getMaxFileSize

public String getMaxFileSize()

setMaxFileSize

public void setMaxFileSize(String maxFileSize)


Copyright © 2005-2013 QOS.ch. All Rights Reserved.