Search in sources :

Example 1 with FileConflictDetectEvent

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);
    }
}
Also used : FileBatch(com.alibaba.otter.shared.etl.model.FileBatch) FileConflictDetectEvent(com.alibaba.otter.node.etl.conflict.model.FileConflictDetectEvent)

Aggregations

FileConflictDetectEvent (com.alibaba.otter.node.etl.conflict.model.FileConflictDetectEvent)1 FileBatch (com.alibaba.otter.shared.etl.model.FileBatch)1