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.Path file)
          Should the master delete the file or keep it?
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 
Methods inherited from interface org.apache.hadoop.hbase.Stoppable
isStopped, stop
 

Method Detail

isFileDeletable

boolean isFileDeletable(org.apache.hadoop.fs.Path file)
Should the master delete the file or keep it?

Parameters:
file - full path to the file to check
Returns:
true if the file is deletable, false if not


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.