Package org.apache.storm.daemon.common

## Class FileWatcher

- java.lang.Object
- - org.apache.storm.daemon.common.FileWatcher

- All Implemented Interfaces:
    `Runnable`

      public class FileWatcher
      extends Object
      implements Runnable

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static interface` | `FileWatcher.Callback` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `FileWatcher​(Path watchedFile, FileWatcher.Callback callback)` |
    `FileWatcher​(Path watchedFile, FileWatcher.Callback callback, List<WatchEvent.Kind<Path>> kinds)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `run()` |
    `void` | `start()` |
    `void` | `stop()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FileWatcher

          public FileWatcher​(Path watchedFile,
                             FileWatcher.Callback callback)
                      throws IOException

      Throws:
        `IOException`

    - #### FileWatcher

          public FileWatcher​(Path watchedFile,
                             FileWatcher.Callback callback,
                             List<WatchEvent.Kind<Path>> kinds)
                      throws IOException

      Throws:
        `IOException`

  - ### Method Detail

    - #### start

          public void start()

    - #### stop

          public void stop()

    - #### run

          public void run()

      Specified by:
        `run` in interface `Runnable`