Class DirectoryUpdateMonitor


  • public class DirectoryUpdateMonitor
    extends Object
    Monitors of local file system directories for changes.
    • Constructor Detail

      • DirectoryUpdateMonitor

        public DirectoryUpdateMonitor​(List<File> directories,
                                      long pollFrequency,
                                      boolean syncDeletes)
        Creates a directory update monitor which, when started, will notify on changes within the given directories.
        Parameters:
        directories - to monitor
        pollFrequency - how often the monitor should look for changes
    • Method Detail

      • startMonitor

        public void startMonitor()
        Starts the monitor watching for updates.
      • stopMonitor

        public void stopMonitor()
        Stops the monitor, no further updates will be reported.