Class BaseHFileCleanerDelegate
java.lang.Object
org.apache.hadoop.hbase.BaseConfigurable
org.apache.hadoop.hbase.master.cleaner.BaseFileCleanerDelegate
org.apache.hadoop.hbase.master.cleaner.BaseHFileCleanerDelegate
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,FileCleanerDelegate
,Stoppable
- Direct Known Subclasses:
BackupHFileCleaner
,HFileLinkCleaner
,LongTermArchivingHFileCleaner
,ManualMobMaintHFileCleaner
,ReplicationHFileCleaner
,SnapshotHFileCleaner
,SnapshotScannerHDFSAclCleaner
Base class for the hfile cleaning function inside the master. By default, only the
TimeToLiveHFileCleaner
is called.
If other effects are needed, implement your own HFileCleanerDelegate and add it to the
configuration "hbase.master.hfilecleaner.plugins", which is a comma-separated list of fully
qualified class names. The HFileCleaner
will build the cleaner chain in order the
order specified by the configuration.
For subclasses, setConf will be called exactly once before using the cleaner.
Since HFileCleanerDelegates
are created in HFileCleaner by
reflection, classes that implements this interface must provide a default constructor.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns True ifStoppable.stop(String)
has been closed.void
Stop this service.Methods inherited from class org.apache.hadoop.hbase.master.cleaner.BaseFileCleanerDelegate
getDeletableFiles, init, isFileDeletable
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
-
stopped
-
-
Constructor Details
-
BaseHFileCleanerDelegate
public BaseHFileCleanerDelegate()
-
-
Method Details
-
stop
Description copied from interface:Stoppable
Stop this service. Implementers should favor logging errors over throwing RuntimeExceptions.- Parameters:
why
- Why we're stopping.
-
isStopped
Description copied from interface:Stoppable
Returns True ifStoppable.stop(String)
has been closed.
-