TimeBasedRollingPolicy.
| Modifier and Type | Method and Description |
|---|---|
| public ArchiveRemover | |
| public String | Returns: current period's file name (without compression suffix)Return the current periods file name without the compression suffix. |
| public long | Returns: current time valueReturn the current time which is usually the value returned by System.currentMillis(). |
| public String | |
| public void | |
| public void | setTimeBasedRollingPolicy(TimeBasedRollingPolicy<E>
parent TimeBasedRollingPolicy tbrp)Set the host/parent |
| getArchiveRemover | back to summary |
|---|---|
| public ArchiveRemover getArchiveRemover() Return the archive remover appropriate for this instance. | |
| getCurrentPeriodsFileNameWithoutCompressionSuffix | back to summary |
|---|---|
| public String getCurrentPeriodsFileNameWithoutCompressionSuffix() Return the current periods file name without the compression suffix. This value is equivalent to the active file name.
| |
| getCurrentTime | back to summary |
|---|---|
| public long getCurrentTime() Return the current time which is usually the value returned by System.currentMillis(). However, for testing purposed this value may be different than the real time.
| |
| getElapsedPeriodsFileName | back to summary |
|---|---|
| public String getElapsedPeriodsFileName() Return the file name for the elapsed periods file name. | |
| setCurrentTime | back to summary |
|---|---|
| public void setCurrentTime(long now) Set the current time. Only unit tests should invoke this method. | |
| setTimeBasedRollingPolicy | back to summary |
|---|---|
| public void setTimeBasedRollingPolicy(TimeBasedRollingPolicy<E> tbrp) Set the host/parent
| |