Class FileWatcher

All Implemented Interfaces:
ResourceWatcher

public class FileWatcher extends AbstractResourceWatcher<FileChangesListener>
File resources watcher The file watcher checks directory and all its subdirectories for file changes and notifies its listeners accordingly
  • Constructor Summary

    Constructors
    Constructor
    Description
     file)
    Creates new file watcher on the given directory
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears any state with the FileWatcher, making all files show up as new
    protected void
    Will be called periodically
    protected void
    Will be called once on initialization

    Methods inherited from class org.elasticsearch.watcher.AbstractResourceWatcher

    addListener, checkAndNotify, init, listeners, remove

    Methods inherited from class java.lang.

    , , , , , , , , , ,