public class SizeAndTimeBasedFNATP<E> extends TimeBasedFileNamingAndTriggeringPolicyBase<E>
archiveRemover, artificialCurrentTime, dateInCurrentPeriod, elapsedPeriodsFileName, nextCheck, rc, started, tbrpcontext| 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, stopaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic void start()
start in interface LifeCyclestart in class TimeBasedFileNamingAndTriggeringPolicyBase<E>public boolean isTriggeringEvent(java.io.File activeFile,
E event)
TriggeringPolicyactiveFile - A reference to the currently active log file.event - A reference to the currently event.public java.lang.String getCurrentPeriodsFileNameWithoutCompressionSuffix()
TimeBasedFileNamingAndTriggeringPolicygetCurrentPeriodsFileNameWithoutCompressionSuffix in interface TimeBasedFileNamingAndTriggeringPolicy<E>getCurrentPeriodsFileNameWithoutCompressionSuffix in class TimeBasedFileNamingAndTriggeringPolicyBase<E>public java.lang.String getMaxFileSize()
public void setMaxFileSize(java.lang.String maxFileSize)