Package thredds.server.catalog.tracker
Class CatalogWatcher
java.lang.Object
thredds.server.catalog.tracker.CatalogWatcher
- All Implemented Interfaces:
Closeable,AutoCloseable
Put a watch on directories for when catalogs change. not used yet
- Since:
- 6/9/2015
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidProcess all events for keys queued to the watchervoidRegister the given directory with the WatchServicevoidregisterAll(Path start) Register the given directory, and all its sub-directories, with the WatchService.
-
Constructor Details
-
CatalogWatcher
- Throws:
IOException
-
-
Method Details
-
register
Register the given directory with the WatchService- Throws:
IOException
-
registerAll
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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-