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, setContext
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isTriggeringEvent
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public TimeBasedFileNamingAndTriggeringPolicyBase()
public void setDateInCurrentPeriod(java.util.Date _dateInCurrentPeriod)
public java.lang.String getElapsedPeriodsFileName()
TimeBasedFileNamingAndTriggeringPolicy
getElapsedPeriodsFileName
in interface TimeBasedFileNamingAndTriggeringPolicy<E>
public java.lang.String getCurrentPeriodsFileNameWithoutCompressionSuffix()
TimeBasedFileNamingAndTriggeringPolicy
getCurrentPeriodsFileNameWithoutCompressionSuffix
in interface TimeBasedFileNamingAndTriggeringPolicy<E>
public void setCurrentTime(long timeInMillis)
TimeBasedFileNamingAndTriggeringPolicy
setCurrentTime
in interface TimeBasedFileNamingAndTriggeringPolicy<E>
public long getCurrentTime()
TimeBasedFileNamingAndTriggeringPolicy
getCurrentTime
in interface TimeBasedFileNamingAndTriggeringPolicy<E>
public void setTimeBasedRollingPolicy(TimeBasedRollingPolicy<E> _tbrp)
TimeBasedFileNamingAndTriggeringPolicy
TimeBasedRollingPolicy
.setTimeBasedRollingPolicy
in interface TimeBasedFileNamingAndTriggeringPolicy<E>
_tbrp
- parent TimeBasedRollingPolicypublic ArchiveRemover getArchiveRemover()
TimeBasedFileNamingAndTriggeringPolicy
getArchiveRemover
in interface TimeBasedFileNamingAndTriggeringPolicy<E>
Copyright © 2010 - 2020 Adobe. All Rights Reserved