@InterfaceAudience.LimitedPrivate(value="Configuration") @InterfaceStability.Evolving public class SnapshotHFileCleaner extends BaseHFileCleanerDelegate
| 限定符和类型 | 字段和说明 |
|---|---|
static 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)
|
| 构造器和说明 |
|---|
SnapshotHFileCleaner() |
| 限定符和类型 | 方法和说明 |
|---|---|
Iterable<org.apache.hadoop.fs.FileStatus> |
getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
Determines which of the given files are safe to delete
|
SnapshotFileCache |
getFileCacheForTesting()
Exposed for Testing!
|
void |
init(Map<String,Object> params)
this method is used to pass some instance into subclass
|
protected 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) |
void |
stop(String why) |
getConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreCleanpublic Iterable<org.apache.hadoop.fs.FileStatus> getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
FileCleanerDelegategetDeletableFiles 在接口中 FileCleanerDelegategetDeletableFiles 在类中 BaseFileCleanerDelegatefiles - files to check for deletionpublic void init(Map<String,Object> params)
FileCleanerDelegateinit 在接口中 FileCleanerDelegateinit 在类中 BaseFileCleanerDelegateprotected boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable 在类中 BaseFileCleanerDelegatefStat - file status of the file to checkpublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf 在接口中 org.apache.hadoop.conf.ConfigurablesetConf 在类中 BaseConfigurablepublic void stop(String why)
stop 在接口中 Stoppablestop 在类中 BaseHFileCleanerDelegatepublic boolean isStopped()
isStopped 在接口中 StoppableisStopped 在类中 BaseHFileCleanerDelegatepublic SnapshotFileCache getFileCacheForTesting()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.