org.apache.hadoop.hbase.master.snapshot
Class SnapshotLogCleaner
java.lang.Object
org.apache.hadoop.hbase.BaseConfigurable
org.apache.hadoop.hbase.master.cleaner.BaseLogCleanerDelegate
org.apache.hadoop.hbase.master.snapshot.SnapshotLogCleaner
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, FileCleanerDelegate, Stoppable
@InterfaceAudience.Private
@InterfaceStability.Evolving
public class SnapshotLogCleaner
- extends BaseLogCleanerDelegate
Implementation of a log cleaner that checks if a log is still used by
snapshots of HBase tables.
Method Summary |
boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it? |
boolean |
isStopped()
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
This method should only be called once, as it starts a thread to keep the cache
up-to-date. |
void |
stop(String why)
Stop this service. |
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.conf.Configurable |
getConf |
SnapshotLogCleaner
public SnapshotLogCleaner()
isFileDeletable
public boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
- Description copied from interface:
FileCleanerDelegate
- Should the master delete the file or keep it?
- Specified by:
isFileDeletable
in interface FileCleanerDelegate
- Overrides:
isFileDeletable
in class BaseLogCleanerDelegate
- Parameters:
fStat
- file status of the file to check
- Returns:
- true if the file is deletable, false if not
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- This method should only be called once, as it starts a thread to keep the cache
up-to-date.
- Specified by:
setConf
in interface org.apache.hadoop.conf.Configurable
- Overrides:
setConf
in class BaseConfigurable
stop
public void stop(String why)
- Description copied from interface:
Stoppable
- Stop this service.
- Parameters:
why
- Why we're stopping.
isStopped
public boolean isStopped()
- Returns:
- True if
Stoppable.stop(String)
has been closed.
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.