use of org.apache.flink.runtime.scheduler.SchedulerNG in project flink by apache.
the class StopWithSavepointTerminationHandlerImplTest method createTestInstance.
private StopWithSavepointTerminationHandlerImpl createTestInstance(Consumer<Throwable> handleGlobalFailureConsumer) {
// checkpointing should be always stopped before initiating stop-with-savepoint
checkpointScheduling.stopCheckpointScheduler();
final SchedulerNG scheduler = TestingSchedulerNG.newBuilder().setHandleGlobalFailureConsumer(handleGlobalFailureConsumer).build();
return new StopWithSavepointTerminationHandlerImpl(JOB_ID, scheduler, checkpointScheduling, log);
}
Aggregations