| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv final FileNamePattern | |
| protected static final long | |
| pack-priv long | |
| pack-priv static final int | |
| private int | |
| pack-priv final boolean | |
| pack-priv final RollingCalendar | |
| private long | |
| protected static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private boolean | |
| public void | clean(Instant now)
Implements ch. |
| public Future | |
| public void | |
| pack-priv int | |
| pack-priv boolean | computeParentCleaningFlag(FileNamePattern fileNamePattern)
Computes whether the fileNamePattern may create sub-folders. |
| protected void | |
| private boolean | |
| protected File[] | |
| pack-priv File | |
| protected int | |
| pack-priv void | |
| private void | |
| public void | setMaxHistory(int maxHistory)
Implements ch. |
| public void | setTotalSizeCap(long totalSizeCap)
Implements ch. |
| public String |
| callCount | back to summary |
|---|---|
| pack-priv int callCount | |
| fileNamePattern | back to summary |
|---|---|
| pack-priv final FileNamePattern fileNamePattern | |
| INACTIVITY_TOLERANCE_IN_MILLIS | back to summary |
|---|---|
| protected static final long INACTIVITY_TOLERANCE_IN_MILLIS | |
| lastHeartBeat | back to summary |
|---|---|
| pack-priv long lastHeartBeat | |
| MAX_VALUE_FOR_INACTIVITY_PERIODS | back to summary |
|---|---|
| pack-priv static final int MAX_VALUE_FOR_INACTIVITY_PERIODS | |
| maxHistory | back to summary |
|---|---|
| private int maxHistory | |
| parentClean | back to summary |
|---|---|
| pack-priv final boolean parentClean | |
| rc | back to summary |
|---|---|
| pack-priv final RollingCalendar rc | |
| totalSizeCap | back to summary |
|---|---|
| private long totalSizeCap | |
| UNINITIALIZED | back to summary |
|---|---|
| protected static final long UNINITIALIZED | |
| TimeBasedArchiveRemover | back to summary |
|---|---|
| public TimeBasedArchiveRemover(FileNamePattern fileNamePattern, RollingCalendar rc) | |
| capTotalSize | back to summary |
|---|---|
| pack-priv void capTotalSize(Instant now) | |
| checkAndDeleteFile | back to summary |
|---|---|
| private boolean checkAndDeleteFile(File f) | |
| clean | back to summary |
|---|---|
| public void clean(Instant now) Implements ch. Called from the cleaning thread.
| |
| cleanAsynchronously | back to summary |
|---|---|
| public Future Implements ch. | |
| cleanPeriod | back to summary |
|---|---|
| public void cleanPeriod(Instant instantOfPeriodToClean) | |
| computeElapsedPeriodsSinceLastClean | back to summary |
|---|---|
| pack-priv int computeElapsedPeriodsSinceLastClean(long nowInMillis) | |
| computeParentCleaningFlag | back to summary |
|---|---|
| pack-priv boolean computeParentCleaningFlag(FileNamePattern fileNamePattern) Computes whether the fileNamePattern may create sub-folders. | |
| descendingSort | back to summary |
|---|---|
| protected void descendingSort(File[] matchingFileArray, Instant instant) | |
| fileExistsAndIsFile | back to summary |
|---|---|
| private boolean fileExistsAndIsFile(File file2Delete) | |
| getFilesInPeriod | back to summary |
|---|---|
| protected File[] getFilesInPeriod(Instant instantOfPeriodToClean) | |
| getParentDir | back to summary |
|---|---|
| pack-priv File getParentDir(File file) | |
| getPeriodOffsetForDeletionTarget | back to summary |
|---|---|
| protected int getPeriodOffsetForDeletionTarget() | |
| removeFolderIfEmpty | back to summary |
|---|---|
| pack-priv void removeFolderIfEmpty(File dir) | |
| removeFolderIfEmpty | back to summary |
|---|---|
| private void removeFolderIfEmpty(File dir, int depth) Will remove the directory passed as parameter if empty. After that, if the parent is also becomes empty, remove the parent dir as well but at most 3 times. | |
| setMaxHistory | back to summary |
|---|---|
| public void setMaxHistory(int maxHistory) Implements ch. | |
| setTotalSizeCap | back to summary |
|---|---|
| public void setTotalSizeCap(long totalSizeCap) Implements ch. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| now | back to summary |
|---|---|
| pack-priv Instant now | |
| ArchiveRemoverRunnable | back to summary |
|---|---|
| pack-priv ArchiveRemoverRunnable(Instant now) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |