|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.apache.hadoop.hbase.Chore
org.apache.hadoop.hbase.master.LogCleaner
public class LogCleaner
This Chore, everytime it runs, will clear the wal logs in the old logs folder that are deletable for each log cleaner in the chain, in order to limit the number of deletes it sends, will only delete maximum 20 in a single run.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.Chore |
|---|
stopper |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
LogCleaner(int p,
Stoppable s,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path oldLogDir)
|
|
| Method Summary | |
|---|---|
void |
addLogCleaner(LogCleanerDelegate logCleaner)
Add a LogCleanerDelegate to the log cleaner chain. |
protected void |
chore()
Look for chores. |
static LogCleanerDelegate |
newLogCleaner(java.lang.String className,
org.apache.hadoop.conf.Configuration conf)
A utility method to create new instances of LogCleanerDelegate based on the class name of the LogCleanerDelegate. |
void |
run()
|
| Methods inherited from class org.apache.hadoop.hbase.Chore |
|---|
initialChore, sleep, triggerNow |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogCleaner(int p,
Stoppable s,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path oldLogDir)
p - the period of time to sleep between each runs - the stopperconf - configuration to usefs - handle to the FSoldLogDir - the path to the archived logs| Method Detail |
|---|
public static LogCleanerDelegate newLogCleaner(java.lang.String className,
org.apache.hadoop.conf.Configuration conf)
className - fully qualified class name of the LogCleanerDelegateconf -
public void addLogCleaner(LogCleanerDelegate logCleaner)
logCleaner - protected void chore()
Chore
chore in class Chorepublic void run()
run in interface java.lang.Runnablerun in class ChoreThread.run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||