Package org.apache.hadoop.hbase.mob
Class ManualMobMaintHFileCleaner
java.lang.Object
org.apache.hadoop.hbase.BaseConfigurable
org.apache.hadoop.hbase.master.cleaner.BaseFileCleanerDelegate
org.apache.hadoop.hbase.master.cleaner.BaseHFileCleanerDelegate
org.apache.hadoop.hbase.mob.ManualMobMaintHFileCleaner
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,FileCleanerDelegate
,Stoppable
@LimitedPrivate("Configuration")
public class ManualMobMaintHFileCleaner
extends BaseHFileCleanerDelegate
BaseHFileCleanerDelegate
that prevents cleaning HFiles from a mob region keeps a map of
table name strings to mob region name strings over the life of a JVM instance. if there's churn
of unique table names we'll eat memory until Master restart.-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final ConcurrentMap<TableName,
String> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isFileDeletable
(org.apache.hadoop.fs.FileStatus fStat) Should the master delete the file or keep it?Methods inherited from class org.apache.hadoop.hbase.master.cleaner.BaseHFileCleanerDelegate
isStopped, stop
Methods inherited from class org.apache.hadoop.hbase.master.cleaner.BaseFileCleanerDelegate
getDeletableFiles, init
Methods inherited from class org.apache.hadoop.hbase.BaseConfigurable
getConf, setConf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
Methods inherited from interface org.apache.hadoop.hbase.master.cleaner.FileCleanerDelegate
isEmptyDirDeletable, postClean, preClean
-
Field Details
-
LOG
-
MOB_REGIONS
-
-
Constructor Details
-
ManualMobMaintHFileCleaner
public ManualMobMaintHFileCleaner()
-
-
Method Details
-
isFileDeletable
Description copied from class:BaseFileCleanerDelegate
Should the master delete the file or keep it?- Specified by:
isFileDeletable
in classBaseFileCleanerDelegate
- Parameters:
fStat
- file status of the file to check- Returns:
- true if the file is deletable, false if not
-