Class LogCleaner
java.lang.Object
org.apache.storm.daemon.logviewer.utils.LogCleaner
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
Cleans dead workers logs and directories.
-
Constructor Summary
ConstructorDescriptionLogCleaner
(Map<String, Object> stormConf, WorkerLogs workerLogs, DirectoryCleaner directoryCleaner, Path logRootDir, StormMetricsRegistry metricsRegistry) Constuctor. -
Method Summary
-
Constructor Details
-
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 Details