@InterfaceAudience.LimitedPrivate(value="Configuration") public class BackupHFileCleaner extends BaseHFileCleanerDelegate implements Abortable
| Constructor and Description |
|---|
BackupHFileCleaner() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String why,
Throwable e)
Abort the server or client.
|
Iterable<FileStatus> |
getDeletableFiles(Iterable<FileStatus> files)
Determines which of the given files are safe to delete
|
boolean |
isAborted()
Check if the server or client was aborted.
|
boolean |
isFileDeletable(FileStatus fStat)
Should the master delete the file or keep it?
|
boolean |
isStopped() |
void |
setConf(Configuration config) |
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 boolean isFileDeletable(FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable in class BaseFileCleanerDelegatefStat - file status of the file to checkpublic void setConf(Configuration config)
setConf in class BaseConfigurablepublic 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 void abort(String why, Throwable e)
Abortable