Class LogCleaner
- java.lang.Object
-
- org.apache.storm.daemon.logviewer.utils.LogCleaner
-
-
Constructor Summary
Constructors Constructor Description LogCleaner(Map<String,Object> stormConf, WorkerLogs workerLogs, DirectoryCleaner directoryCleaner, Path logRootDir, StormMetricsRegistry metricsRegistry)
Constuctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
run()
Delete old log dirs for which the workers are no longer alive.void
start()
Start log cleanup thread.
-
-
-
Constructor Detail
-
LogCleaner
public LogCleaner(Map<String,Object> stormConf, WorkerLogs workerLogs, DirectoryCleaner directoryCleaner, Path logRootDir, StormMetricsRegistry metricsRegistry)
Constuctor.- Parameters:
stormConf
- configuration map for Storm clusterworkerLogs
-WorkerLogs
instancedirectoryCleaner
-DirectoryCleaner
instancelogRootDir
- root log directorymetricsRegistry
- The logviewer metrics registry
-
-
Method Detail
-
start
public void start()
Start log cleanup thread.
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-