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:
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(java.lang.String why)
          Stop this service.
 
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(java.lang.String why)
Description copied from interface: Stoppable
Stop this service.

Specified by:
stop in interface Stoppable
Parameters:
why - Why we're stopping.

isStopped

public boolean isStopped()
Specified by:
isStopped in interface Stoppable
Returns:
True if Stoppable.stop(String) has been closed.


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