@InterfaceAudience.Private public class LogCleaner extends CleanerChore<BaseLogCleanerDelegate>
BaseLogCleanerDelegate
cleanersChain
Constructor and Description |
---|
LogCleaner(int p,
Stoppable s,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path oldLogDir) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
validate(org.apache.hadoop.fs.Path file)
Validate the file to see if it even belongs in the directory.
|
chore, cleanup
choreForTesting, initialChore, run, sleep, triggerNow
getName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, start
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 logsprotected boolean validate(org.apache.hadoop.fs.Path file)
CleanerChore
validate
in class CleanerChore<BaseLogCleanerDelegate>
file
- full Path
of the file to be checkedCopyright © 2014 The Apache Software Foundation. All rights reserved.