Class LogCleaner

java.lang.Object
org.apache.storm.daemon.logviewer.utils.LogCleaner
All Implemented Interfaces:
Closeable, AutoCloseable, Runnable

public class LogCleaner extends Object implements Runnable, Closeable
Cleans dead workers logs and directories.
  • Constructor Details

  • Method Details

    • start

      public void start()
      Start log cleanup thread.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • run

      public void run()
      Delete old log dirs for which the workers are no longer alive.
      Specified by:
      run in interface Runnable