org.apache.hadoop.hbase.master.cleaner
Interface FileCleanerDelegate
- All Superinterfaces:
- org.apache.hadoop.conf.Configurable, Stoppable
- All Known Implementing Classes:
- BaseHFileCleanerDelegate, BaseLogCleanerDelegate, HFileLinkCleaner, ReplicationLogCleaner, SnapshotHFileCleaner, SnapshotLogCleaner, TimeToLiveHFileCleaner, TimeToLiveLogCleaner
@InterfaceAudience.Private
public interface FileCleanerDelegate
- extends org.apache.hadoop.conf.Configurable, Stoppable
General interface for cleaning files from a folder (generally an archive or
backup folder). These are chained via the CleanerChore
to determine
if a given file should be deleted.
Method Summary |
boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it? |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
isFileDeletable
boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
- Should the master delete the file or keep it?
- Parameters:
fStat
- file status of the file to check
- Returns:
- true if the file is deletable, false if not
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.