public class TimeToLiveLogCleaner extends BaseLogCleanerDelegate
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TTL |
static java.lang.String |
TTL_CONF_KEY |
| Constructor and Description |
|---|
TimeToLiveLogCleaner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFileDeletable(FileStatus fStat)
Should the master delete the file or keep it?
|
boolean |
isStopped() |
void |
setConf(Configuration conf) |
void |
stop(java.lang.String why) |
getDeletableFiles, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreCleanpublic static final java.lang.String TTL_CONF_KEY
public static final long DEFAULT_TTL
public boolean isFileDeletable(FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable in class BaseLogCleanerDelegatefStat - file status of the file to checkpublic void setConf(Configuration conf)
public void stop(java.lang.String why)
public boolean isStopped()