public class CatalogWatcher
extends java.lang.Object
implements java.io.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(java.nio.file.Path dir)
Register the given directory with the WatchService
|
void |
registerAll(java.nio.file.Path start)
Register the given directory, and all its sub-directories, with the
WatchService.
|
public CatalogWatcher(DatasetTracker tracker, boolean enable) throws java.io.IOException
java.io.IOExceptionpublic void register(java.nio.file.Path dir)
throws java.io.IOException
java.io.IOExceptionpublic void registerAll(java.nio.file.Path start)
throws java.io.IOException
java.io.IOExceptionpublic void processEvents()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException