@InterfaceAudience.LimitedPrivate(value="Configuration") public class TimeToLiveLogCleaner extends BaseLogCleanerDelegate
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
LOG |
private boolean |
stopped |
private long |
ttl |
Constructor and Description |
---|
TimeToLiveLogCleaner() |
Modifier and Type | Method and Description |
---|---|
boolean |
isLogDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the log or keep it?
|
boolean |
isStopped() |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
stop(String why)
Stop this service.
|
isFileDeletable
getDeletableFiles, init
getConf
private static final org.apache.commons.logging.Log LOG
private long ttl
private boolean stopped
public boolean isLogDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseLogCleanerDelegate
Implementing classes should override BaseLogCleanerDelegate.isFileDeletable(FileStatus)
instead.
isLogDeletable
in class BaseLogCleanerDelegate
fStat
- file status of the filepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class BaseConfigurable
public void stop(String why)
Stoppable
why
- Why we're stopping.public boolean isStopped()
Stoppable.stop(String)
has been closed.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.