@InterfaceAudience.Private public class LogCleaner extends CleanerChore<BaseLogCleanerDelegate>
BaseLogCleanerDelegatecleanersChain| 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, cleanupchoreForTesting, initialChore, run, sleep, triggerNowgetName, getThread, interrupt, isAlive, isInterrupted, join, join, join, setDaemon, setName, setPriority, setUncaughtExceptionHandler, startpublic 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)
CleanerChorevalidate in class CleanerChore<BaseLogCleanerDelegate>file - full Path of the file to be checkedCopyright © 2014 The Apache Software Foundation. All rights reserved.