@InterfaceAudience.LimitedPrivate(value="Configuration") @InterfaceStability.Evolving public class SnapshotScannerHDFSAclCleaner extends BaseHFileCleanerDelegate
| Modifier and Type | Field and Description | 
|---|---|
| private static org.slf4j.Logger | LOG | 
| private HMaster | master | 
| private boolean | userScanSnapshotEnabled | 
| Constructor and Description | 
|---|
| SnapshotScannerHDFSAclCleaner() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | init(Map<String,Object> params)this method is used to pass some instance into subclass | 
| (package private) static boolean | isArchiveDataDir(org.apache.hadoop.fs.Path path) | 
| (package private) static boolean | isArchiveNamespaceDir(org.apache.hadoop.fs.Path path) | 
| (package private) static boolean | isArchiveTableDir(org.apache.hadoop.fs.Path path) | 
| private boolean | isEmptyArchiveDirDeletable(org.apache.hadoop.fs.Path dir) | 
| boolean | isEmptyDirDeletable(org.apache.hadoop.fs.Path dir)Check if a empty directory with no subdirs or subfiles can be deleted | 
| protected boolean | isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)Should the master delete the file or keep it? | 
| private boolean | namespaceExists(String namespace) | 
| void | setConf(org.apache.hadoop.conf.Configuration conf) | 
| private boolean | tableExists(TableName tableName) | 
isStopped, stopgetDeletableFilesgetConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreCleanprivate static final org.slf4j.Logger LOG
private boolean userScanSnapshotEnabled
public SnapshotScannerHDFSAclCleaner()
public void init(Map<String,Object> params)
FileCleanerDelegateinit in interface FileCleanerDelegateinit in class BaseFileCleanerDelegatepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class BaseConfigurableprotected boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable in class BaseFileCleanerDelegatefStat - file status of the file to checkpublic boolean isEmptyDirDeletable(org.apache.hadoop.fs.Path dir)
FileCleanerDelegatedir - Path of the directoryprivate boolean isEmptyArchiveDirDeletable(org.apache.hadoop.fs.Path dir)
@InterfaceAudience.Private static boolean isArchiveDataDir(org.apache.hadoop.fs.Path path)
@InterfaceAudience.Private static boolean isArchiveNamespaceDir(org.apache.hadoop.fs.Path path)
@InterfaceAudience.Private static boolean isArchiveTableDir(org.apache.hadoop.fs.Path path)
private boolean namespaceExists(String namespace) throws IOException
IOExceptionprivate boolean tableExists(TableName tableName) throws IOException
IOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.