@InterfaceAudience.LimitedPrivate(value="Configuration") public class ReplicationLogCleaner extends BaseLogCleanerDelegate
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG |
private ReplicationQueueStorage |
queueStorage |
private long |
readZKTimestamp |
private boolean |
shareZK |
private boolean |
stopped |
private Set<String> |
wals |
private ZKWatcher |
zkw |
| Constructor and Description |
|---|
ReplicationLogCleaner() |
| 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
|
void |
init(Map<String,Object> params)
this method is used to pass some instance into subclass
|
boolean |
isStopped()
Returns True if
Stoppable.stop(String) has been closed. |
void |
preClean()
Used to do some initialize work before every period clean
|
void |
setConf(org.apache.hadoop.conf.Configuration conf,
ZKWatcher zk) |
void |
stop(String why)
Stop this service.
|
isFileDeletablegetConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEmptyDirDeletableprivate static final org.slf4j.Logger LOG
private boolean shareZK
private ReplicationQueueStorage queueStorage
private boolean stopped
private long readZKTimestamp
public ReplicationLogCleaner()
public void preClean()
FileCleanerDelegatepublic 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 init(Map<String,Object> params)
FileCleanerDelegateinit in interface FileCleanerDelegateinit in class BaseFileCleanerDelegate@InterfaceAudience.Private public void setConf(org.apache.hadoop.conf.Configuration conf, ZKWatcher zk)
public void stop(String why)
Stoppablewhy - Why we're stopping.public boolean isStopped()
StoppableStoppable.stop(String) has been closed.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.