@InterfaceAudience.LimitedPrivate(value="Configuration") public class ReplicationHFileCleaner extends BaseHFileCleanerDelegate
| Constructor and Description |
|---|
ReplicationHFileCleaner() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<FileStatus> |
getDeletableFiles(Iterable<FileStatus> files)
Determines which of the given files are safe to delete
|
boolean |
isFileDeletable(FileStatus fStat)
Should the master delete the file or keep it?
|
boolean |
isStopped() |
void |
setConf(Configuration config) |
void |
setConf(Configuration conf,
ZooKeeperWatcher zk) |
void |
stop(String why)
Stop this service.
|
getConfpublic Iterable<FileStatus> getDeletableFiles(Iterable<FileStatus> files)
FileCleanerDelegategetDeletableFiles in interface FileCleanerDelegategetDeletableFiles in class BaseFileCleanerDelegatefiles - files to check for deletionpublic void setConf(Configuration config)
setConf in class BaseConfigurablepublic void setConf(Configuration conf,
ZooKeeperWatcher zk)
public void stop(String why)
Stoppablestop in interface Stoppablestop in class BaseHFileCleanerDelegatewhy - Why we're stopping.public boolean isStopped()
isStopped in interface StoppableisStopped in class BaseHFileCleanerDelegateStoppable.stop(String) has been closed.public boolean isFileDeletable(FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable in class BaseFileCleanerDelegatefStat - file status of the file to check