@InterfaceAudience.LimitedPrivate(value="Configuration") public class ReplicationHFileCleaner extends BaseHFileCleanerDelegate
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private ReplicationQueueStorage |
rqs |
private boolean |
stopped |
private ZKWatcher |
zkw |
| Constructor and Description |
|---|
ReplicationHFileCleaner() |
| Modifier and Type | Method and Description |
|---|---|
Iterable<org.apache.hadoop.fs.FileStatus> |
getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
Determines which of the given files are safe to delete
|
private void |
initReplicationQueueStorage(org.apache.hadoop.conf.Configuration conf,
ZKWatcher zk) |
boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it?
|
boolean |
isStopped()
Returns True if
Stoppable.stop(String) has been closed. |
void |
setConf(org.apache.hadoop.conf.Configuration config) |
void |
setConf(org.apache.hadoop.conf.Configuration conf,
ZKWatcher zk) |
void |
stop(String why)
Stop this service.
|
initgetConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEmptyDirDeletable, preCleanprivate static final org.slf4j.Logger LOG
private ReplicationQueueStorage rqs
private boolean stopped
public ReplicationHFileCleaner()
public Iterable<org.apache.hadoop.fs.FileStatus> getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
FileCleanerDelegategetDeletableFiles in interface FileCleanerDelegategetDeletableFiles in class BaseFileCleanerDelegatefiles - files to check for deletionpublic void setConf(org.apache.hadoop.conf.Configuration config)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class BaseConfigurable@InterfaceAudience.Private public void setConf(org.apache.hadoop.conf.Configuration conf, ZKWatcher zk)
private void initReplicationQueueStorage(org.apache.hadoop.conf.Configuration conf, ZKWatcher zk)
public void stop(String why)
Stoppablestop in interface Stoppablestop in class BaseHFileCleanerDelegatewhy - Why we're stopping.public boolean isStopped()
StoppableStoppable.stop(String) has been closed.isStopped in interface StoppableisStopped in class BaseHFileCleanerDelegatepublic boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable in class BaseFileCleanerDelegatefStat - file status of the file to checkCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.