public class CatalogWatcher extends Object implements Closeable
| Constructor and Description |
|---|
CatalogWatcher(DatasetTracker tracker,
boolean enable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
processEvents()
Process all events for keys queued to the watcher
|
void |
register(Path dir)
Register the given directory with the WatchService
|
void |
registerAll(Path start)
Register the given directory, and all its sub-directories, with the
WatchService.
|
public CatalogWatcher(DatasetTracker tracker, boolean enable) throws IOException
IOExceptionpublic void register(Path dir) throws IOException
IOExceptionpublic void registerAll(Path start) throws IOException
IOExceptionpublic void processEvents()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException