use of com.alibaba.otter.node.etl.conflict.model.FileConflictDetectEvent in project otter by alibaba.
the class FileBatchConflictDetectServiceImpl method detect.
public FileBatch detect(FileBatch fileBatch, Long targetNodeId) {
FileConflictDetectEvent event = new FileConflictDetectEvent();
event.setFileBatch(fileBatch);
if (isLocal(targetNodeId)) {
return onFileConflictDetect(event);
} else {
// 调用远程
return (FileBatch) nodeCommmunicationClient.call(targetNodeId, event);
}
}
Aggregations