Class CatalogWatcher

java.lang.Object
thredds.server.catalog.tracker.CatalogWatcher
All Implemented Interfaces:
Closeable, AutoCloseable

public class CatalogWatcher extends Object implements Closeable
Put a watch on directories for when catalogs change. not used yet
Since:
6/9/2015
  • Constructor Details

  • Method Details

    • register

      public void register(Path dir) throws IOException
      Register the given directory with the WatchService
      Throws:
      IOException
    • registerAll

      public void registerAll(Path start) throws IOException
      Register the given directory, and all its sub-directories, with the WatchService.
      Throws:
      IOException
    • processEvents

      public void processEvents()
      Process all events for keys queued to the watcher
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException