# Uses of Class
org.springframework.batch.core.repository.JobRestartException

Packages that use JobRestartException
Package
Description
org.springframework.batch.core.job
Specific implementations of job concerns.
org.springframework.batch.core.job.flow
Flow related constructs including Flow interface, executors, and related exceptions
org.springframework.batch.core.launch
Interfaces and simple implementations of launch concerns.
org.springframework.batch.core.launch.support
Support classes for use in bootstrap and launch implementations or configurations.
org.springframework.batch.core.repository
Interfaces and generic implementations of repository concerns.
org.springframework.batch.core.repository.support
Specific implementations of repository concerns.
org.springframework.batch.test
Utility classes for batch job/step testing.

- ## Uses of JobRestartException in org.springframework.batch.core.job

  Methods in org.springframework.batch.core.job that throw JobRestartException
  Modifier and Type
  Method
  Description
  `protected void`
  SimpleJob.`doExecute(JobExecution execution)`
  Handler of steps sequentially as provided, checking each one for success before moving to the next.
  `protected final StepExecution`
  AbstractJob.`handleStep(Step step, JobExecution execution)`
  Convenience method for subclasses to delegate the handling of a specific step in the context of the current `JobExecution`.
  `StepExecution`
  SimpleStepHandler.`handleStep(Step step, JobExecution execution)`
  `StepExecution`
  StepHandler.`handleStep(Step step, JobExecution jobExecution)`
  Handle a step and return the execution for it.
  `protected boolean`
  SimpleStepHandler.`shouldStart(StepExecution lastStepExecution, JobExecution jobExecution, Step step)`
  Given a step and configuration, return true if the step should start, false if it should not, and throw an exception if the job should finish.

- ## Uses of JobRestartException in org.springframework.batch.core.job.flow

  Methods in org.springframework.batch.core.job.flow that throw JobRestartException
  Modifier and Type
  Method
  Description
  `String`
  FlowExecutor.`executeStep(Step step)`
  `String`
  JobFlowExecutor.`executeStep(Step step)`

- ## Uses of JobRestartException in org.springframework.batch.core.launch

  Methods in org.springframework.batch.core.launch that throw JobRestartException
  Modifier and Type
  Method
  Description
  `Long`
  JobOperator.`restart(long executionId)`
  Restart a failed or stopped `JobExecution`.
  `JobExecution`
  JobLauncher.`run(Job job, JobParameters jobParameters)`
  Start a job execution for the given `Job` and `JobParameters` .
  `Long`
  JobOperator.`startNextInstance(String jobName)`
  Launch the next in a sequence of `JobInstance` determined by the `JobParametersIncrementer` attached to the specified job.

- ## Uses of JobRestartException in org.springframework.batch.core.launch.support

  Methods in org.springframework.batch.core.launch.support that throw JobRestartException
  Modifier and Type
  Method
  Description
  `Long`
  SimpleJobOperator.`restart(long executionId)`
  `JobExecution`
  SimpleJobLauncher.`run(Job job, JobParameters jobParameters)`
  Run the provided job with the given `JobParameters`.

- ## Uses of JobRestartException in org.springframework.batch.core.repository

  Methods in org.springframework.batch.core.repository that throw JobRestartException
  Modifier and Type
  Method
  Description
  `JobExecution`
  JobRepository.`createJobExecution(String jobName, JobParameters jobParameters)`
  Create a `JobExecution` for a given `Job` and `JobParameters`.

- ## Uses of JobRestartException in org.springframework.batch.core.repository.support

  Methods in org.springframework.batch.core.repository.support that throw JobRestartException
  Modifier and Type
  Method
  Description
  `JobExecution`
  SimpleJobRepository.`createJobExecution(String jobName, JobParameters jobParameters)`

- ## Uses of JobRestartException in org.springframework.batch.test

  Methods in org.springframework.batch.test that throw JobRestartException
  Modifier and Type
  Method
  Description
  `List<JobExecution>`
  JobRepositoryTestUtils.`createJobExecutions(int count)`
  Use the `JobRepository` to create some `JobExecution` instances each with a single step execution.
  `List<JobExecution>`
  JobRepositoryTestUtils.`createJobExecutions(String jobName, String[] stepNames, int count)`
  Use the `JobRepository` to create some `JobExecution` instances each with the given job name and each having step executions with the given step names.