use of org.jumpmind.symmetric.file.FileTriggerTracker in project symmetric-ds by JumpMind.
the class FileSyncService method trackChanges.
protected void trackChanges(ProcessInfo processInfo, boolean useCrc) {
List<FileTriggerRouter> fileTriggerRouters = getFileTriggerRoutersForCurrentNode();
for (FileTriggerRouter fileTriggerRouter : fileTriggerRouters) {
if (fileTriggerRouter.isEnabled()) {
try {
FileTriggerTracker tracker = new FileTriggerTracker(fileTriggerRouter, getDirectorySnapshot(fileTriggerRouter), processInfo, useCrc, engine);
DirectorySnapshot dirSnapshot = tracker.trackChanges();
saveDirectorySnapshot(fileTriggerRouter, dirSnapshot);
} catch (Exception ex) {
log.error("Failed to track changes for file trigger router: " + fileTriggerRouter.getFileTrigger().getTriggerId() + "::" + fileTriggerRouter.getRouter().getRouterId(), ex);
}
}
}
}
Aggregations