Skip to content

Commit

Permalink
[hotfix][runtime] Rename SchedulerTestingUtils#createScheduler(...) t…
Browse files Browse the repository at this point in the history
…o createSchedulerBuilder(...) because it returns a builder
  • Loading branch information
zhuzhurk committed Dec 17, 2020
1 parent 52741b1 commit b3a2bc1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,27 +146,27 @@ public static DefaultScheduler createScheduler(

public static DefaultSchedulerBuilder createSchedulerBuilder(
JobGraph jobGraph,
ManuallyTriggeredScheduledExecutorService asyncExecutor) throws Exception {
ManuallyTriggeredScheduledExecutorService asyncExecutor) {

return createScheduler(jobGraph, asyncExecutor, new SimpleAckingTaskManagerGateway());
return createSchedulerBuilder(jobGraph, asyncExecutor, new SimpleAckingTaskManagerGateway());
}

public static DefaultSchedulerBuilder createSchedulerBuilder(
JobGraph jobGraph,
ManuallyTriggeredScheduledExecutorService asyncExecutor,
TaskExecutorOperatorEventGateway operatorEventGateway) throws Exception {
TaskExecutorOperatorEventGateway operatorEventGateway) {

final TaskManagerGateway gateway = operatorEventGateway instanceof TaskManagerGateway
? (TaskManagerGateway) operatorEventGateway
: new TaskExecutorOperatorEventGatewayAdapter(operatorEventGateway);

return createScheduler(jobGraph, asyncExecutor, gateway);
return createSchedulerBuilder(jobGraph, asyncExecutor, gateway);
}

public static DefaultSchedulerBuilder createScheduler(
public static DefaultSchedulerBuilder createSchedulerBuilder(
JobGraph jobGraph,
ManuallyTriggeredScheduledExecutorService asyncExecutor,
TaskManagerGateway taskManagerGateway) throws Exception {
TaskManagerGateway taskManagerGateway) {

return newSchedulerBuilder(jobGraph)
.setFutureExecutor(asyncExecutor)
Expand Down

0 comments on commit b3a2bc1

Please sign in to comment.