|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.replication.master.ReplicationLogCleaner
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()
Instantiates the cleaner, does nothing more. |
Method Summary | |
---|---|
void |
abort(String why,
Throwable e)
Abort the server or client. |
org.apache.hadoop.conf.Configuration |
getConf()
|
boolean |
isLogDeletable(org.apache.hadoop.fs.Path filePath)
Should the master delete the log or keep it? |
boolean |
isStopped()
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
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 |
Constructor Detail |
---|
public ReplicationLogCleaner()
Method Detail |
---|
public boolean isLogDeletable(org.apache.hadoop.fs.Path filePath)
LogCleanerDelegate
isLogDeletable
in interface LogCleanerDelegate
filePath
- full path to log.
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |