@InterfaceAudience.LimitedPrivate(value="Configuration") @InterfaceStability.Evolving public class SnapshotLogCleaner extends BaseLogCleanerDelegate
| Constructor and Description |
|---|
SnapshotLogCleaner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it?
|
boolean |
isStopped() |
void |
setConf(org.apache.hadoop.conf.Configuration conf)
This method should only be called once, as it starts a thread to keep the cache
up-to-date.
|
void |
stop(String why)
Stop this service.
|
isLogDeletablegetDeletableFilesgetConfpublic boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable in class BaseLogCleanerDelegatefStat - file status of the file to checkpublic 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.