public class TimeBasedArchiveRemover extends ContextAwareBase implements ArchiveRemover
| Modifier and Type | Class and Description |
|---|---|
class |
TimeBasedArchiveRemover.ArhiveRemoverRunnable |
| Modifier and Type | Field and Description |
|---|---|
protected static long |
INACTIVITY_TOLERANCE_IN_MILLIS |
protected static long |
UNINITIALIZED |
context| Constructor and Description |
|---|
TimeBasedArchiveRemover(FileNamePattern fileNamePattern,
RollingCalendar rc) |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(java.util.Date now) |
java.util.concurrent.Future<?> |
cleanAsynchronously(java.util.Date now) |
void |
cleanPeriod(java.util.Date dateOfPeriodToClean) |
protected java.io.File[] |
getFilesInPeriod(java.util.Date dateOfPeriodToClean) |
protected int |
getPeriodOffsetForDeletionTarget() |
void |
setMaxHistory(int maxHistory) |
void |
setTotalSizeCap(long totalSizeCap) |
java.lang.String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextprotected static final long UNINITIALIZED
protected static final long INACTIVITY_TOLERANCE_IN_MILLIS
public TimeBasedArchiveRemover(FileNamePattern fileNamePattern, RollingCalendar rc)
public void clean(java.util.Date now)
clean in interface ArchiveRemoverprotected java.io.File[] getFilesInPeriod(java.util.Date dateOfPeriodToClean)
public void cleanPeriod(java.util.Date dateOfPeriodToClean)
public void setMaxHistory(int maxHistory)
setMaxHistory in interface ArchiveRemoverprotected int getPeriodOffsetForDeletionTarget()
public void setTotalSizeCap(long totalSizeCap)
setTotalSizeCap in interface ArchiveRemoverpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.concurrent.Future<?> cleanAsynchronously(java.util.Date now)
cleanAsynchronously in interface ArchiveRemover