@InterfaceAudience.Private public abstract class BaseLogCleanerDelegate extends BaseFileCleanerDelegate
TimeToLiveLogCleaner
and
ReplicationLogCleaner
are called in order. So if other effects
are needed, implement your own LogCleanerDelegate and add it to the
configuration "hbase.master.logcleaner.plugins", which is a comma-separated
list of fully qualified class names. LogsCleaner will add it to the chain.
HBase ships with LogsCleaner as the default implementation.
This interface extends Configurable, so setConf needs to be called once before using the cleaner. Since LogCleanerDelegates are created in LogsCleaner by reflection. Classes that implements this interface should provide a default constructor.
Constructor and Description |
---|
BaseLogCleanerDelegate() |
Modifier and Type | Method and Description |
---|---|
boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it?
|
boolean |
isLogDeletable(org.apache.hadoop.fs.FileStatus fStat)
Deprecated.
|
getDeletableFiles
getConf, setConf
public boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegate
isFileDeletable
in class BaseFileCleanerDelegate
fStat
- file status of the file to check@Deprecated public boolean isLogDeletable(org.apache.hadoop.fs.FileStatus fStat)
Implementing classes should override isFileDeletable(FileStatus)
instead.
fStat
- file status of the fileCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.