org.apache.hadoop.hbase.master.cleaner
Class BaseHFileCleanerDelegate

java.lang.Object
  extended by org.apache.hadoop.hbase.BaseConfigurable
      extended by 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 BaseConfigurable
implements FileCleanerDelegate

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.


Constructor Summary
BaseHFileCleanerDelegate()
           
 
Method Summary
 boolean isStopped()
           
 void stop(String why)
           
 
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.hbase.master.cleaner.FileCleanerDelegate
isFileDeletable
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Constructor Detail

BaseHFileCleanerDelegate

public BaseHFileCleanerDelegate()
Method Detail

stop

public void stop(String why)
Specified by:
stop in interface Stoppable

isStopped

public boolean isStopped()
Specified by:
isStopped in interface Stoppable


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