@InterfaceAudience.LimitedPrivate(value="Configuration") public class TimeToLiveLogCleaner extends BaseLogCleanerDelegate
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
getConf
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-2016 The Apache Software Foundation. All Rights Reserved.