Class BaseHFileCleanerDelegate

All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, FileCleanerDelegate, Stoppable
Direct Known Subclasses:
BackupHFileCleaner, HFileLinkCleaner, LongTermArchivingHFileCleaner, ManualMobMaintHFileCleaner, ReplicationHFileCleaner, SnapshotHFileCleaner, SnapshotScannerHDFSAclCleaner

@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 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 Details

    • stopped

      private boolean stopped
  • Constructor Details

  • Method Details

    • stop

      public void stop(String why)
      Description copied from interface: Stoppable
      Stop this service. Implementers should favor logging errors over throwing RuntimeExceptions.
      Parameters:
      why - Why we're stopping.
    • isStopped

      public boolean isStopped()
      Description copied from interface: Stoppable
      Returns True if Stoppable.stop(String) has been closed.