Package org.duracloud.sync.monitor
Class DirectoryUpdateMonitor
java.lang.Object
org.duracloud.sync.monitor.DirectoryUpdateMonitor
Monitors of local file system directories for changes.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryUpdateMonitor(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
Modifier and TypeMethodDescriptionvoidStarts the monitor watching for updates.voidStops the monitor, no further updates will be reported.
-
Constructor Details
-
DirectoryUpdateMonitor
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
-
-
Method Details
-
startMonitor
public void startMonitor()Starts the monitor watching for updates. -
stopMonitor
public void stopMonitor()Stops the monitor, no further updates will be reported.
-