@InterfaceAudience.LimitedPrivate(value="Configuration") public class ReplicationLogCleaner extends BaseLogCleanerDelegate
| 构造器和说明 |
|---|
ReplicationLogCleaner() |
| 限定符和类型 | 方法和说明 |
|---|---|
Iterable<org.apache.hadoop.fs.FileStatus> |
getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
Determines which of the given files are safe to delete
|
boolean |
isStopped() |
void |
preClean()
Used to do some initialize work before every period clean
|
void |
setConf(org.apache.hadoop.conf.Configuration config) |
void |
setConf(org.apache.hadoop.conf.Configuration conf,
ZKWatcher zk) |
void |
stop(String why) |
isFileDeletableinitgetConfpublic void preClean()
FileCleanerDelegatepublic Iterable<org.apache.hadoop.fs.FileStatus> getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
FileCleanerDelegategetDeletableFiles 在接口中 FileCleanerDelegategetDeletableFiles 在类中 BaseFileCleanerDelegatefiles - files to check for deletionpublic void setConf(org.apache.hadoop.conf.Configuration config)
setConf 在接口中 org.apache.hadoop.conf.ConfigurablesetConf 在类中 BaseConfigurablepublic void setConf(org.apache.hadoop.conf.Configuration conf,
ZKWatcher zk)
public void stop(String why)
public boolean isStopped()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.