org.apache.hadoop.hbase.master.cleaner
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:
- HFileLinkCleaner, LongTermArchivingHFileCleaner, SnapshotHFileCleaner, TimeToLiveHFileCleaner
@InterfaceAudience.Private
public abstract class BaseHFileCleanerDelegate
- extends BaseFileCleanerDelegate
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 LogCleanerDelegate 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.
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 |
BaseHFileCleanerDelegate
public BaseHFileCleanerDelegate()
stop
public void stop(String why)
- Description copied from interface:
Stoppable
- Stop this service.
- Parameters:
why
- Why we're stopping.
isStopped
public boolean isStopped()
- Returns:
- True if
Stoppable.stop(String)
has been closed.
Copyright © 2015 The Apache Software Foundation. All rights reserved.