public class SizeAndTimeBasedFNATP<E> extends TimeBasedFileNamingAndTriggeringPolicyBase<E>
archiveRemover, artificialCurrentTime, dateInCurrentPeriod, elapsedPeriodsFileName, nextCheck, rc, started, tbrp
context
Constructor and Description |
---|
SizeAndTimeBasedFNATP() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrentPeriodsFileNameWithoutCompressionSuffix()
Return the current periods file name without the compression suffix.
|
java.lang.String |
getMaxFileSize() |
boolean |
isTriggeringEvent(java.io.File activeFile,
E event)
Should roll-over be triggered at this time?
|
void |
setMaxFileSize(java.lang.String maxFileSize) |
void |
start() |
computeNextCheck, getArchiveRemover, getCurrentTime, getElapsedPeriodsFileName, isStarted, setCurrentTime, setDateInCurrentPeriod, setDateInCurrentPeriod, setTimeBasedRollingPolicy, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public void start()
start
in interface LifeCycle
start
in class TimeBasedFileNamingAndTriggeringPolicyBase<E>
public boolean isTriggeringEvent(java.io.File activeFile, E event)
TriggeringPolicy
activeFile
- A reference to the currently active log file.event
- A reference to the currently event.public java.lang.String getCurrentPeriodsFileNameWithoutCompressionSuffix()
TimeBasedFileNamingAndTriggeringPolicy
getCurrentPeriodsFileNameWithoutCompressionSuffix
in interface TimeBasedFileNamingAndTriggeringPolicy<E>
getCurrentPeriodsFileNameWithoutCompressionSuffix
in class TimeBasedFileNamingAndTriggeringPolicyBase<E>
public java.lang.String getMaxFileSize()
public void setMaxFileSize(java.lang.String maxFileSize)