Skip to content

Commit

Permalink
resolve sonar: class is part of one cycle containing 2 classes
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyu10 committed Oct 14, 2024
1 parent 19c31bb commit 113e377
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import java.util.function.Supplier;

@Slf4j
public class DAGOperations {
public class DAGOperations implements DAGOperationsInterface {
private static final String EXECUTION_ID = "executionId";

private final ExecutorService runnerExecutor;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.weibo.rill.flow.olympicene.traversal;

import com.weibo.rill.flow.interfaces.model.task.TaskInfo;
import com.weibo.rill.flow.olympicene.core.model.NotifyInfo;
import com.weibo.rill.flow.olympicene.core.model.dag.DAGInfo;
import com.weibo.rill.flow.olympicene.core.model.dag.DAGInvokeMsg;
import com.weibo.rill.flow.olympicene.core.model.dag.DAGStatus;
import org.apache.commons.lang3.tuple.Pair;

import java.util.Collection;
import java.util.Map;

public interface DAGOperationsInterface {
void finishDAG(String executionId, DAGInfo dagInfo, DAGStatus dagStatus, DAGInvokeMsg dagInvokeMsg);
void finishTaskAsync(String executionId, String taskCategory, NotifyInfo notifyInfo, Map<String, Object> output);
void finishTaskSync(String executionId, String taskCategory, NotifyInfo notifyInfo, Map<String, Object> output);
void runTasks(String executionId, Collection<Pair<TaskInfo, Map<String, Object>>> taskInfoToContexts);
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class DAGTraversal {
private final DAGStorageProcedure dagStorageProcedure;
private final ExecutorService traversalExecutor;
@Setter
private DAGOperations dagOperations;
private DAGOperationsInterface dagOperations;
@Setter
private Stasher stasher;

Expand Down

0 comments on commit 113e377

Please sign in to comment.