public class OozieRollingPolicy extends org.apache.log4j.rolling.RollingPolicyBase implements org.apache.log4j.rolling.TriggeringPolicy
Constructor and Description |
---|
OozieRollingPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
activateOptions() |
int |
getMaxHistory() |
org.apache.log4j.rolling.RolloverDescription |
initialize(String file,
boolean append) |
boolean |
isTriggeringEvent(org.apache.log4j.Appender appender,
org.apache.log4j.spi.LoggingEvent event,
String filename,
long fileLength) |
org.apache.log4j.rolling.RolloverDescription |
rollover(String activeFile) |
void |
setFileNamePattern(String fnp) |
void |
setMaxHistory(int maxHistory) |
public OozieRollingPolicy()
public int getMaxHistory()
public void setMaxHistory(int maxHistory)
public void setFileNamePattern(String fnp)
setFileNamePattern
in class org.apache.log4j.rolling.RollingPolicyBase
public void activateOptions()
activateOptions
in interface org.apache.log4j.spi.OptionHandler
activateOptions
in class org.apache.log4j.rolling.RollingPolicyBase
public org.apache.log4j.rolling.RolloverDescription initialize(String file, boolean append) throws SecurityException
initialize
in interface org.apache.log4j.rolling.RollingPolicy
SecurityException
public org.apache.log4j.rolling.RolloverDescription rollover(String activeFile) throws SecurityException
rollover
in interface org.apache.log4j.rolling.RollingPolicy
SecurityException
public boolean isTriggeringEvent(org.apache.log4j.Appender appender, org.apache.log4j.spi.LoggingEvent event, String filename, long fileLength)
isTriggeringEvent
in interface org.apache.log4j.rolling.TriggeringPolicy
Copyright © 2018 Apache Software Foundation. All rights reserved.