@InterfaceAudience.Private public class HFileCleaner extends CleanerChore<BaseHFileCleanerDelegate>
| Modifier and Type | Field and Description |
|---|---|
static String |
MASTER_HFILE_CLEANER_PLUGINS |
cleanersChain| Constructor and Description |
|---|
HFileCleaner(int period,
Stoppable stopper,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path directory) |
| Modifier and Type | Method and Description |
|---|---|
List<BaseHFileCleanerDelegate> |
getDelegatesForTesting()
Exposed for TESTING!
|
protected boolean |
validate(org.apache.hadoop.fs.Path file)
Validate the file to see if it even belongs in the directory.
|
chore, cleanupchoreForTesting, initialChore, run, sleep, triggerNowgetName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, startpublic static final String MASTER_HFILE_CLEANER_PLUGINS
public HFileCleaner(int period,
Stoppable stopper,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path directory)
period - the period of time to sleep between each runstopper - the stopperconf - configuration to usefs - handle to the FSdirectory - directory to be cleanedprotected boolean validate(org.apache.hadoop.fs.Path file)
CleanerChorevalidate in class CleanerChore<BaseHFileCleanerDelegate>file - full Path of the file to be checkedpublic List<BaseHFileCleanerDelegate> getDelegatesForTesting()
Copyright © 2014 The Apache Software Foundation. All rights reserved.