public abstract class TimeBasedFileNamingAndTriggeringPolicyBase<E> extends ContextAwareBase implements TimeBasedFileNamingAndTriggeringPolicy<E>
| Constructor and Description |
|---|
TimeBasedFileNamingAndTriggeringPolicyBase() |
| Modifier and Type | Method and Description |
|---|---|
ArchiveRemover |
getArchiveRemover()
Return the archive remover appropriate for this instance.
|
java.lang.String |
getCurrentPeriodsFileNameWithoutCompressionSuffix()
Return the current periods file name without the compression suffix.
|
long |
getCurrentTime()
Return the current time which is usually the value returned by
System.currentMillis().
|
java.lang.String |
getElapsedPeriodsFileName()
Return the file name for the elapsed periods file name.
|
boolean |
isStarted() |
void |
setCurrentTime(long timeInMillis)
Set the current time.
|
void |
setDateInCurrentPeriod(java.util.Date _dateInCurrentPeriod) |
void |
setTimeBasedRollingPolicy(TimeBasedRollingPolicy<E> _tbrp)
Set the host/parent
TimeBasedRollingPolicy. |
void |
start() |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContextequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisTriggeringEventaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextpublic TimeBasedFileNamingAndTriggeringPolicyBase()
public void setDateInCurrentPeriod(java.util.Date _dateInCurrentPeriod)
public java.lang.String getElapsedPeriodsFileName()
TimeBasedFileNamingAndTriggeringPolicygetElapsedPeriodsFileName in interface TimeBasedFileNamingAndTriggeringPolicy<E>public java.lang.String getCurrentPeriodsFileNameWithoutCompressionSuffix()
TimeBasedFileNamingAndTriggeringPolicygetCurrentPeriodsFileNameWithoutCompressionSuffix in interface TimeBasedFileNamingAndTriggeringPolicy<E>public void setCurrentTime(long timeInMillis)
TimeBasedFileNamingAndTriggeringPolicysetCurrentTime in interface TimeBasedFileNamingAndTriggeringPolicy<E>public long getCurrentTime()
TimeBasedFileNamingAndTriggeringPolicygetCurrentTime in interface TimeBasedFileNamingAndTriggeringPolicy<E>public void setTimeBasedRollingPolicy(TimeBasedRollingPolicy<E> _tbrp)
TimeBasedFileNamingAndTriggeringPolicyTimeBasedRollingPolicy.setTimeBasedRollingPolicy in interface TimeBasedFileNamingAndTriggeringPolicy<E>_tbrp - parent TimeBasedRollingPolicypublic ArchiveRemover getArchiveRemover()
TimeBasedFileNamingAndTriggeringPolicygetArchiveRemover in interface TimeBasedFileNamingAndTriggeringPolicy<E>Copyright © 2010 - 2023 Adobe. All Rights Reserved