Package ch.qos.logback.core.rolling
Class TimeBasedFileNamingAndTriggeringPolicyBase<E>
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.rolling.TimeBasedFileNamingAndTriggeringPolicyBase<E>
-
- All Implemented Interfaces:
TimeBasedFileNamingAndTriggeringPolicy<E>,TriggeringPolicy<E>,ContextAware,LifeCycle
- Direct Known Subclasses:
DefaultTimeBasedFileNamingAndTriggeringPolicy,SizeAndTimeBasedFNATP
@Deprecated(since="2022-01-27") public abstract class TimeBasedFileNamingAndTriggeringPolicyBase<E> extends ContextAwareBase implements TimeBasedFileNamingAndTriggeringPolicy<E>
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description TimeBasedFileNamingAndTriggeringPolicyBase()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ArchiveRemovergetArchiveRemover()Deprecated.Return the archive remover appropriate for this instance.java.lang.StringgetCurrentPeriodsFileNameWithoutCompressionSuffix()Deprecated.Return the current periods file name without the compression suffix.longgetCurrentTime()Deprecated.Return the current time which is usually the value returned by System.currentMillis().java.lang.StringgetElapsedPeriodsFileName()Deprecated.Return the file name for the elapsed periods file name.booleanisStarted()Deprecated.voidsetCurrentTime(long timeInMillis)Deprecated.Set the current time.voidsetDateInCurrentPeriod(java.util.Date _dateInCurrentPeriod)Deprecated.voidsetTimeBasedRollingPolicy(TimeBasedRollingPolicy<E> _tbrp)Deprecated.Set the host/parentTimeBasedRollingPolicy.voidstart()Deprecated.voidstop()Deprecated.-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.qos.logback.core.spi.ContextAware
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
-
Methods inherited from interface ch.qos.logback.core.rolling.TriggeringPolicy
isTriggeringEvent
-
-
-
-
Method Detail
-
setDateInCurrentPeriod
public void setDateInCurrentPeriod(java.util.Date _dateInCurrentPeriod)
Deprecated.
-
getElapsedPeriodsFileName
public java.lang.String getElapsedPeriodsFileName()
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicyReturn the file name for the elapsed periods file name.- Specified by:
getElapsedPeriodsFileNamein interfaceTimeBasedFileNamingAndTriggeringPolicy<E>- Returns:
-
getCurrentPeriodsFileNameWithoutCompressionSuffix
public java.lang.String getCurrentPeriodsFileNameWithoutCompressionSuffix()
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicyReturn the current periods file name without the compression suffix. This value is equivalent to the active file name.- Specified by:
getCurrentPeriodsFileNameWithoutCompressionSuffixin interfaceTimeBasedFileNamingAndTriggeringPolicy<E>- Returns:
- current period's file name (without compression suffix)
-
setCurrentTime
public void setCurrentTime(long timeInMillis)
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicySet the current time. Only unit tests should invoke this method.- Specified by:
setCurrentTimein interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
-
getCurrentTime
public long getCurrentTime()
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicyReturn 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.- Specified by:
getCurrentTimein interfaceTimeBasedFileNamingAndTriggeringPolicy<E>- Returns:
- current time value
-
setTimeBasedRollingPolicy
public void setTimeBasedRollingPolicy(TimeBasedRollingPolicy<E> _tbrp)
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicySet the host/parentTimeBasedRollingPolicy.- Specified by:
setTimeBasedRollingPolicyin interfaceTimeBasedFileNamingAndTriggeringPolicy<E>- Parameters:
_tbrp- parent TimeBasedRollingPolicy
-
getArchiveRemover
public ArchiveRemover getArchiveRemover()
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicyReturn the archive remover appropriate for this instance.- Specified by:
getArchiveRemoverin interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
-
-