Package org.duracloud.sync.monitor
Class DirectoryUpdateMonitor
- java.lang.Object
-
- org.duracloud.sync.monitor.DirectoryUpdateMonitor
-
public class DirectoryUpdateMonitor extends Object
Monitors of local file system directories for changes.
-
-
Constructor Summary
Constructors Constructor Description DirectoryUpdateMonitor(List<File> directories, long pollFrequency, boolean syncDeletes)Creates a directory update monitor which, when started, will notify on changes within the given directories.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidstartMonitor()Starts the monitor watching for updates.voidstopMonitor()Stops the monitor, no further updates will be reported.
-
-
-
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 monitorpollFrequency- how often the monitor should look for changes
-
-