@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.
|
isFileDeletablegetDeletableFilesgetConfpublic boolean isLogDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseLogCleanerDelegate
Implementing classes should override BaseLogCleanerDelegate.isFileDeletable(FileStatus) instead.
isLogDeletable in class BaseLogCleanerDelegatefStat - file status of the filepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class BaseConfigurablepublic void stop(String why)
Stoppablewhy - Why we're stopping.public boolean isStopped()
Stoppable.stop(String) has been closed.Copyright © 2014 The Apache Software Foundation. All rights reserved.