org.apache.hadoop.hbase.master
Class OldLogsCleaner
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.Chore
org.apache.hadoop.hbase.master.OldLogsCleaner
- All Implemented Interfaces:
- Runnable
public class OldLogsCleaner
- extends Chore
This Chore, everytime it runs, will clear the logs in the old logs folder
that are older than hbase.master.logcleaner.ttl and, in order to limit the
number of deletes it sends, will only delete maximum 20 in a single run.
Fields inherited from class org.apache.hadoop.hbase.Chore |
stop |
Constructor Summary |
OldLogsCleaner(int p,
AtomicBoolean s,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path oldLogDir)
|
Method Summary |
protected void |
chore()
Look for chores. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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 |
OldLogsCleaner
public OldLogsCleaner(int p,
AtomicBoolean s,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path oldLogDir)
- Parameters:
p
- the period of time to sleep between each runs
- the stopper booleanconf
- configuration to usefs
- handle to the FSoldLogDir
- the path to the archived logs
chore
protected void chore()
- Description copied from class:
Chore
- Look for chores. If any found, do them else just return.
- Specified by:
chore
in class Chore
Copyright © 2010 Apache Software Foundation. All Rights Reserved.