@InterfaceAudience.LimitedPrivate(value="Configuration") @InterfaceStability.Evolving public class SnapshotHFileCleaner extends BaseHFileCleanerDelegate
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HFILE_CACHE_REFRESH_PERIOD_CONF_KEY
Conf key for the frequency to attempt to refresh the cache of hfiles currently used in
snapshots (ms)
|
| Constructor and Description |
|---|
SnapshotHFileCleaner() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<FileStatus> |
getDeletableFiles(java.lang.Iterable<FileStatus> files)
Determines which of the given files are safe to delete
|
SnapshotFileCache |
getFileCacheForTesting()
Exposed for Testing!
|
protected boolean |
isFileDeletable(FileStatus fStat)
Should the master delete the file or keep it?
|
boolean |
isStopped() |
void |
setConf(Configuration conf) |
void |
stop(java.lang.String why)
Stop this service.
|
getConfpublic static final java.lang.String HFILE_CACHE_REFRESH_PERIOD_CONF_KEY
public java.lang.Iterable<FileStatus> getDeletableFiles(java.lang.Iterable<FileStatus> files)
FileCleanerDelegategetDeletableFiles in interface FileCleanerDelegategetDeletableFiles in class BaseFileCleanerDelegatefiles - files to check for deletionprotected boolean isFileDeletable(FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable in class BaseFileCleanerDelegatefStat - file status of the file to checkpublic void setConf(Configuration conf)
setConf in class BaseConfigurablepublic void stop(java.lang.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 SnapshotFileCache getFileCacheForTesting()