public abstract class RollingPolicyBase extends ContextAwareBase implements RollingPolicy
| Modifier and Type | Field and Description |
|---|---|
protected CompressionMode |
compressionMode |
protected FileNamePattern |
fileNamePattern |
protected String |
fileNamePatternStr |
context| Constructor and Description |
|---|
RollingPolicyBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
determineCompressionMode()
Given the FileNamePattern string, this method determines the compression
mode depending on last letters of the fileNamePatternStr.
|
CompressionMode |
getCompressionMode()
The compression mode for this policy.
|
String |
getFileNamePattern() |
String |
getParentsRawFileProperty() |
boolean |
isParentPrudent() |
boolean |
isStarted() |
void |
setFileNamePattern(String fnp) |
void |
setParent(FileAppender appender)
This method allows RollingPolicy implementations to be aware of their
containing appender.
|
void |
start() |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActiveFileName, rolloverprotected CompressionMode compressionMode
protected FileNamePattern fileNamePattern
protected String fileNamePatternStr
protected void determineCompressionMode()
public void setFileNamePattern(String fnp)
public String getFileNamePattern()
public CompressionMode getCompressionMode()
RollingPolicygetCompressionMode in interface RollingPolicypublic void setParent(FileAppender appender)
RollingPolicysetParent in interface RollingPolicypublic boolean isParentPrudent()
public String getParentsRawFileProperty()
Copyright © 2005-2013 QOS.ch. All Rights Reserved.