Class RollingPolicyDecorator
- java.lang.Object
-
- org.apache.qpid.server.logging.logback.RollingPolicyDecorator
-
- All Implemented Interfaces:
ch.qos.logback.core.rolling.RollingPolicy,ch.qos.logback.core.spi.LifeCycle
public class RollingPolicyDecorator extends Object implements ch.qos.logback.core.rolling.RollingPolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRollingPolicyDecorator.RolloverListener
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_RESCAN_DELAYstatic intDEFAULT_RESCAN_LIMITstatic StringROLLOVER_RESCAN_DELAY_MS_PROPERTY_NAMEstatic StringROLLOVER_RESCAN_LIMIT_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description RollingPolicyDecorator(ch.qos.logback.core.rolling.RollingPolicyBase decorated, RollingPolicyDecorator.RolloverListener listener, ScheduledExecutorService executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActiveFileName()ch.qos.logback.core.rolling.helper.CompressionModegetCompressionMode()ch.qos.logback.core.rolling.RollingPolicyBasegetDecorated()booleanisStarted()voidrollover()voidsetParent(ch.qos.logback.core.FileAppender appender)voidstart()voidstop()
-
-
-
Field Detail
-
DEFAULT_RESCAN_DELAY
public static final int DEFAULT_RESCAN_DELAY
- See Also:
- Constant Field Values
-
ROLLOVER_RESCAN_DELAY_MS_PROPERTY_NAME
public static final String ROLLOVER_RESCAN_DELAY_MS_PROPERTY_NAME
- See Also:
- Constant Field Values
-
DEFAULT_RESCAN_LIMIT
public static final int DEFAULT_RESCAN_LIMIT
- See Also:
- Constant Field Values
-
ROLLOVER_RESCAN_LIMIT_PROPERTY_NAME
public static final String ROLLOVER_RESCAN_LIMIT_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RollingPolicyDecorator
public RollingPolicyDecorator(ch.qos.logback.core.rolling.RollingPolicyBase decorated, RollingPolicyDecorator.RolloverListener listener, ScheduledExecutorService executorService)
-
-
Method Detail
-
rollover
public void rollover() throws ch.qos.logback.core.rolling.RolloverFailure- Specified by:
rolloverin interfacech.qos.logback.core.rolling.RollingPolicy- Throws:
ch.qos.logback.core.rolling.RolloverFailure
-
getActiveFileName
public String getActiveFileName()
- Specified by:
getActiveFileNamein interfacech.qos.logback.core.rolling.RollingPolicy
-
getCompressionMode
public ch.qos.logback.core.rolling.helper.CompressionMode getCompressionMode()
- Specified by:
getCompressionModein interfacech.qos.logback.core.rolling.RollingPolicy
-
setParent
public void setParent(ch.qos.logback.core.FileAppender appender)
- Specified by:
setParentin interfacech.qos.logback.core.rolling.RollingPolicy
-
start
public void start()
- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle
-
stop
public void stop()
- Specified by:
stopin interfacech.qos.logback.core.spi.LifeCycle
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfacech.qos.logback.core.spi.LifeCycle
-
getDecorated
public ch.qos.logback.core.rolling.RollingPolicyBase getDecorated()
-
-