org.apache.hadoop.hbase.master
Interface LogCleanerDelegate
- All Superinterfaces:
- org.apache.hadoop.conf.Configurable, Stoppable
- All Known Implementing Classes:
- ReplicationLogCleaner, TimeToLiveLogCleaner
public interface LogCleanerDelegate
- extends org.apache.hadoop.conf.Configurable, Stoppable
Interface for the log cleaning function inside the master. By default, three
cleaners TimeToLiveLogCleaner
, ReplicationLogCleaner
,
SnapshotLogCleaner
are called in order. So if other effects are
needed, implement your own LogCleanerDelegate and add it to the configuration
"hbase.master.logcleaner.plugins", which is a comma-separated list of fully
qualified class names. LogsCleaner will add it to the chain.
HBase ships with LogsCleaner as the default implementation.
This interface extends Configurable, so setConf needs to be called once
before using the cleaner.
Since LogCleanerDelegates are created in LogsCleaner by reflection. Classes
that implements this interface should provide a default constructor.
Method Summary |
boolean |
isLogDeletable(org.apache.hadoop.fs.Path filePath)
Should the master delete the log or keep it? |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
isLogDeletable
boolean isLogDeletable(org.apache.hadoop.fs.Path filePath)
- Should the master delete the log or keep it?
- Parameters:
filePath
- full path to log.
- Returns:
- true if the log is deletable, false if not
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.