|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.BaseConfigurable
org.apache.hadoop.hbase.master.cleaner.BaseLogCleanerDelegate
org.apache.hadoop.hbase.replication.master.ReplicationLogCleaner
@InterfaceAudience.Private public class ReplicationLogCleaner
Implementation of a log cleaner that checks if a log is still scheduled for replication before deleting it when its TTL is over.
Constructor Summary | |
---|---|
ReplicationLogCleaner()
|
Method Summary | |
---|---|
void |
abort(String why,
Throwable e)
Abort the server or client. |
boolean |
isAborted()
Check if the server or client was aborted. |
boolean |
isLogDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the log or keep it? |
boolean |
isStopped()
|
void |
setConf(org.apache.hadoop.conf.Configuration config)
|
void |
stop(String why)
Stop this service. |
Methods inherited from class org.apache.hadoop.hbase.master.cleaner.BaseLogCleanerDelegate |
---|
isFileDeletable |
Methods inherited from class org.apache.hadoop.hbase.BaseConfigurable |
---|
getConf |
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 |
Constructor Detail |
---|
public ReplicationLogCleaner()
Method Detail |
---|
public boolean isLogDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseLogCleanerDelegate
Implementing classes should override BaseLogCleanerDelegate.isFileDeletable(FileStatus)
instead.
isLogDeletable
in class BaseLogCleanerDelegate
fStat
- file status of the file
public void setConf(org.apache.hadoop.conf.Configuration config)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class BaseConfigurable
public void stop(String why)
Stoppable
stop
in interface Stoppable
why
- Why we're stopping.public boolean isStopped()
isStopped
in interface Stoppable
Stoppable.stop(String)
has been closed.public void abort(String why, Throwable e)
Abortable
abort
in interface Abortable
why
- Why we're aborting.e
- Throwable that caused abort. Can be null.public boolean isAborted()
Abortable
isAborted
in interface Abortable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |