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
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the archive remover appropriate for this instance.Deprecated.Return the current periods file name without the compression suffix.long
Deprecated.Return the current time which is usually the value returned by System.currentMillis().Deprecated.Return the file name for the elapsed periods file name.boolean
Deprecated.void
setCurrentTime
(long timeInMillis) Deprecated.Set the current time.void
setDateInCurrentPeriod
(Date _dateInCurrentPeriod) Deprecated.void
Deprecated.Set the host/parentTimeBasedRollingPolicy
.void
start()
Deprecated.void
stop()
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
-
Constructor Details
-
TimeBasedFileNamingAndTriggeringPolicyBase
public TimeBasedFileNamingAndTriggeringPolicyBase()Deprecated.
-
-
Method Details
-
isStarted
public boolean isStarted()Deprecated. -
start
public void start()Deprecated. -
stop
public void stop()Deprecated. -
setDateInCurrentPeriod
Deprecated. -
getElapsedPeriodsFileName
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicy
Return the file name for the elapsed periods file name.- Specified by:
getElapsedPeriodsFileName
in interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
- Returns:
-
getCurrentPeriodsFileNameWithoutCompressionSuffix
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicy
Return the current periods file name without the compression suffix. This value is equivalent to the active file name.- Specified by:
getCurrentPeriodsFileNameWithoutCompressionSuffix
in interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
- Returns:
- current period's file name (without compression suffix)
-
setCurrentTime
public void setCurrentTime(long timeInMillis) Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicy
Set the current time. Only unit tests should invoke this method.- Specified by:
setCurrentTime
in interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
- Parameters:
timeInMillis
-
-
getCurrentTime
public long getCurrentTime()Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicy
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.- Specified by:
getCurrentTime
in interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
- Returns:
- current time value
-
setTimeBasedRollingPolicy
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicy
Set the host/parentTimeBasedRollingPolicy
.- Specified by:
setTimeBasedRollingPolicy
in interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
- Parameters:
_tbrp
- parent TimeBasedRollingPolicy
-
getArchiveRemover
Deprecated.Description copied from interface:TimeBasedFileNamingAndTriggeringPolicy
Return the archive remover appropriate for this instance.- Specified by:
getArchiveRemover
in interfaceTimeBasedFileNamingAndTriggeringPolicy<E>
-