org.apache.hadoop.hbase.master
Interface LogCleanerDelegate

All Superinterfaces:
org.apache.hadoop.conf.Configurable
All Known Implementing Classes:
ReplicationLogCleaner, TimeToLiveLogCleaner

public interface LogCleanerDelegate
extends org.apache.hadoop.conf.Configurable

Interface for the log cleaning function inside the master. Only 1 is called so if the desired effect is the mix of many cleaners, do call them yourself in order to control the flow. HBase ships with OldLogsCleaner as the default implementation. This interface extends Configurable, so setConf needs to be called once before using the cleaner.


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
 

Method Detail

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 © 2010 Apache Software Foundation. All Rights Reserved.