test_class.file: flink-runtime/src/test/java/org/apache/flink/runtime/executiongraph/restart/FixedDelayRestartStrategyTest.java
test_class.identifier: FixedDelayRestartStrategyTest
test_case.body: @Test
  	public void testFixedDelayRestartStrategy() {
  		int numberRestarts = 10;
  		long restartDelay = 10;
  
  		FixedDelayRestartStrategy fixedDelayRestartStrategy = new FixedDelayRestartStrategy(
  			numberRestarts,
  			restartDelay);
  
  		ExecutionGraph executionGraph = mock(ExecutionGraph.class);
  		when(executionGraph.getExecutionContext())
  			.thenReturn(ExecutionContext$.MODULE$.fromExecutor(MoreExecutors.directExecutor()));
  
  		while(fixedDelayRestartStrategy.canRestart()) {
  			fixedDelayRestartStrategy.restart(executionGraph);
  		}
  
  		Mockito.verify(executionGraph, Mockito.times(numberRestarts)).restart();
  	}
test_case.class_method_signature: FixedDelayRestartStrategyTest.testFixedDelayRestartStrategy()
test_case.full_signature: @Test public void testFixedDelayRestartStrategy()
test_case.identifier: testFixedDelayRestartStrategy
test_case.invocations: mock thenReturn when getExecutionContext fromExecutor directExecutor canRestart restart restart verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFixedDelayRestartStrategy()
focal_class.declarator: LOG = LoggerFactory.getLogger(FixedDelayRestartStrategy.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(FixedDelayRestartStrategy.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: maxNumberRestartAttempts
focal_class.modifier: private final
focal_class.original_string: private final int maxNumberRestartAttempts;
focal_class.type: int
focal_class.var_name: maxNumberRestartAttempts
focal_class.declarator: delayBetweenRestartAttempts
focal_class.modifier: private final
focal_class.original_string: private final long delayBetweenRestartAttempts;
focal_class.type: long
focal_class.var_name: delayBetweenRestartAttempts
focal_class.declarator: currentRestartAttempt
focal_class.modifier: private
focal_class.original_string: private int currentRestartAttempt;
focal_class.type: int
focal_class.var_name: currentRestartAttempt
focal_class.file: flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/restart/FixedDelayRestartStrategy.java
focal_class.identifier: FixedDelayRestartStrategy
focal_class.interfaces: implements RestartStrategy
focal_class.class_method_signature: FixedDelayRestartStrategy.FixedDelayRestartStrategy(
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts)
focal_class.full_signature: public  FixedDelayRestartStrategy(
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts)
focal_class.identifier: FixedDelayRestartStrategy
focal_class.modifiers: public
focal_class.parameters: (
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts)
focal_class.signature:  FixedDelayRestartStrategy(
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts)
focal_class.class_method_signature: FixedDelayRestartStrategy.getCurrentRestartAttempt()
focal_class.full_signature: public int getCurrentRestartAttempt()
focal_class.identifier: getCurrentRestartAttempt
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getCurrentRestartAttempt()
focal_class.class_method_signature: FixedDelayRestartStrategy.canRestart()
focal_class.full_signature: @Override public boolean canRestart()
focal_class.identifier: canRestart
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canRestart()
focal_class.class_method_signature: FixedDelayRestartStrategy.restart(final ExecutionGraph executionGraph)
focal_class.full_signature: @Override public void restart(final ExecutionGraph executionGraph)
focal_class.identifier: restart
focal_class.modifiers: @Override public
focal_class.parameters: (final ExecutionGraph executionGraph)
focal_class.return: void
focal_class.signature: void restart(final ExecutionGraph executionGraph)
focal_class.class_method_signature: FixedDelayRestartStrategy.create(Configuration configuration)
focal_class.full_signature: public static FixedDelayRestartStrategy create(Configuration configuration)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (Configuration configuration)
focal_class.return: FixedDelayRestartStrategy
focal_class.signature: FixedDelayRestartStrategy create(Configuration configuration)
focal_class.class_method_signature: FixedDelayRestartStrategy.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public FixedDelayRestartStrategy(
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts) {
  
  		Preconditions.checkArgument(maxNumberRestartAttempts >= 0, "Maximum number of restart attempts must be positive.");
  		Preconditions.checkArgument(delayBetweenRestartAttempts >= 0, "Delay between restart attempts must be positive");
  
  		this.maxNumberRestartAttempts = maxNumberRestartAttempts;
  		this.delayBetweenRestartAttempts = delayBetweenRestartAttempts;
  		currentRestartAttempt = 0;
  	}
focal_method.class_method_signature: FixedDelayRestartStrategy.FixedDelayRestartStrategy(
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts)
focal_method.full_signature: public  FixedDelayRestartStrategy(
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts)
focal_method.identifier: FixedDelayRestartStrategy
focal_method.modifiers: public
focal_method.parameters: (
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts)
focal_method.signature:  FixedDelayRestartStrategy(
  		int maxNumberRestartAttempts,
  		long delayBetweenRestartAttempts)