Class SizeAndTimeBasedArchiveRemover
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.rolling.helper.TimeBasedArchiveRemover
ch.qos.logback.core.rolling.helper.SizeAndTimeBasedArchiveRemover
- All Implemented Interfaces:
ArchiveRemover, ContextAware
-
Nested Class Summary
Nested classes/interfaces inherited from class TimeBasedArchiveRemover
TimeBasedArchiveRemover.ArchiveRemoverRunnable -
Field Summary
FieldsFields inherited from class TimeBasedArchiveRemover
INACTIVITY_TOLERANCE_IN_MILLIS, UNINITIALIZEDFields inherited from class ContextAwareBase
context -
Constructor Summary
ConstructorsConstructorDescriptionSizeAndTimeBasedArchiveRemover(FileNamePattern fileNamePattern, FileNamePattern fileNamePatternWithoutCompSuffix, RollingCalendar rc) SizeAndTimeBasedArchiveRemover(FileNamePattern fileNamePattern, RollingCalendar rc) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddescendingSort(File[] matchingFileArray, Instant instant) protected File[]getFilesInPeriod(Instant instantOfPeriodToClean) protected File[]getUncompressedFilesInPeriod(Instant instantOfPeriodToClean) Returns files of the given period which were not compressed, e.g. because the application was down at rollover time.Methods inherited from class TimeBasedArchiveRemover
clean, cleanAsynchronously, cleanPeriod, getPeriodOffsetForDeletionTarget, setMaxHistory, setTotalSizeCap, toStringMethods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Field Details
-
NO_INDEX
- See Also:
-
-
Constructor Details
-
SizeAndTimeBasedArchiveRemover
-
SizeAndTimeBasedArchiveRemover
public SizeAndTimeBasedArchiveRemover(FileNamePattern fileNamePattern, FileNamePattern fileNamePatternWithoutCompSuffix, RollingCalendar rc) - Since:
- 1.7.0
-
-
Method Details
-
getFilesInPeriod
- Overrides:
getFilesInPeriodin classTimeBasedArchiveRemover
-
getUncompressedFilesInPeriod
Description copied from class:TimeBasedArchiveRemoverReturns files of the given period which were not compressed, e.g. because the application was down at rollover time. Returns an empty array if there is no compression.Only called for periods older than maxHistory. Such files are neither the active file nor being compressed.
- Overrides:
getUncompressedFilesInPeriodin classTimeBasedArchiveRemover
-
descendingSort
- Overrides:
descendingSortin classTimeBasedArchiveRemover
-