Uses of Class
org.springframework.batch.core.StepExecution
Packages that use StepExecution
Package
Description
Core domain context for Spring Batch covering jobs, steps, configuration and execution
abstractions.
Interfaces and related classes to support meta data browsing.
Specific implementations of explorer concerns.
Specific implementations of job concerns.
Flow related constructs including Flow interface, executors, and related exceptions
Basic implementations of flow constructs
Generic implementations of core batch listener interfaces.
This package contains APIs related to batch observability.
Interfaces for partitioning components.
Implementation of common partition components.
Interfaces and generic implementations of repository concerns.
Specific implementations of dao concerns.
Specific implementations of repository concerns.
Implementation of the contexts for each of the custom bean scopes in Spring Batch (Job
and Step).
Specific implementations of step concerns.
Specific implementations of step concerns for item-oriented approach.
JobStep and related components.Interfaces and generic implementations of tasklet concerns.
Components for remote chunking.
Remote partitioning components.
Support classes related to steps when used with Spring Integration.
Utility classes for batch job/step testing.
-
Uses of StepExecution in org.springframework.batch.core
Methods in org.springframework.batch.core that return StepExecutionModifier and TypeMethodDescriptionJobExecution.createStepExecution(String stepName) Register a step execution with the current job execution.StepContribution.getStepExecution()Public getter for the parent step execution of this contribution.Methods in org.springframework.batch.core that return types with arguments of type StepExecutionModifier and TypeMethodDescriptionJobExecution.getStepExecutions()Accessor for the step executions.Methods in org.springframework.batch.core with parameters of type StepExecutionModifier and TypeMethodDescriptiondefault ExitStatusStepExecutionListener.afterStep(StepExecution stepExecution) Give a listener a chance to modify the exit status from a step.default voidStepExecutionListener.beforeStep(StepExecution stepExecution) Initialize the state of the listener with theStepExecutionfrom the current scope.voidStep.execute(StepExecution stepExecution) Process the step and assign progress and status meta information to theStepExecutionprovided.Method parameters in org.springframework.batch.core with type arguments of type StepExecutionModifier and TypeMethodDescriptionvoidJobExecution.addStepExecutions(List<StepExecution> stepExecutions) Add some step executions.Constructors in org.springframework.batch.core with parameters of type StepExecution -
Uses of StepExecution in org.springframework.batch.core.explore
Methods in org.springframework.batch.core.explore that return StepExecutionModifier and TypeMethodDescriptionJobExplorer.getStepExecution(Long jobExecutionId, Long stepExecutionId) Retrieve aStepExecutionby its ID and parentJobExecutionID. -
Uses of StepExecution in org.springframework.batch.core.explore.support
Methods in org.springframework.batch.core.explore.support that return StepExecutionModifier and TypeMethodDescriptionSimpleJobExplorer.getStepExecution(Long jobExecutionId, Long executionId) -
Uses of StepExecution in org.springframework.batch.core.job
Methods in org.springframework.batch.core.job that return StepExecutionModifier and TypeMethodDescriptionprotected final StepExecutionAbstractJob.handleStep(Step step, JobExecution execution) Convenience method for subclasses to delegate the handling of a specific step in the context of the currentJobExecution.SimpleStepHandler.handleStep(Step step, JobExecution execution) StepHandler.handleStep(Step step, JobExecution jobExecution) Handle a step and return the execution for it.Methods in org.springframework.batch.core.job with parameters of type StepExecutionModifier and TypeMethodDescriptionprotected booleanSimpleStepHandler.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 StepExecution in org.springframework.batch.core.job.flow
Methods in org.springframework.batch.core.job.flow that return StepExecutionModifier and TypeMethodDescriptionFlowExecutor.getStepExecution()JobFlowExecutor.getStepExecution()Methods in org.springframework.batch.core.job.flow with parameters of type StepExecutionModifier and TypeMethodDescriptionJobExecutionDecider.decide(JobExecution jobExecution, StepExecution stepExecution) Strategy for branching an execution based on the state of an ongoingJobExecution.protected voidFlowStep.doExecute(StepExecution stepExecution) Delegate to the flow provided for the execution of the step. -
Uses of StepExecution in org.springframework.batch.core.job.flow.support
Methods in org.springframework.batch.core.job.flow.support with parameters of type StepExecutionModifier and TypeMethodDescriptionprotected booleanSimpleFlow.isFlowContinued(State state, FlowExecutionStatus status, StepExecution stepExecution) protected StateSimpleFlow.nextState(String stateName, FlowExecutionStatus status, StepExecution stepExecution) -
Uses of StepExecution in org.springframework.batch.core.listener
Methods in org.springframework.batch.core.listener with parameters of type StepExecutionModifier and TypeMethodDescriptionCompositeStepExecutionListener.afterStep(StepExecution stepExecution) Call the registered listeners in reverse order, respecting and prioritizing those that implementOrdered.ExecutionContextPromotionListener.afterStep(StepExecution stepExecution) MulticasterBatchListener.afterStep(StepExecution stepExecution) StepExecutionListenerSupport.afterStep(StepExecution stepExecution) Deprecated.voidCompositeStepExecutionListener.beforeStep(StepExecution stepExecution) Call the registered listeners in order, respecting and prioritizing those that implementOrdered.voidJobParameterExecutionContextCopyListener.beforeStep(StepExecution stepExecution) voidMulticasterBatchListener.beforeStep(StepExecution stepExecution) voidStepExecutionListenerSupport.beforeStep(StepExecution stepExecution) Deprecated. -
Uses of StepExecution in org.springframework.batch.core.observability
Methods in org.springframework.batch.core.observability that return StepExecutionConstructors in org.springframework.batch.core.observability with parameters of type StepExecution -
Uses of StepExecution in org.springframework.batch.core.partition
Methods in org.springframework.batch.core.partition that return types with arguments of type StepExecutionModifier and TypeMethodDescriptionPartitionHandler.handle(StepExecutionSplitter stepSplitter, StepExecution stepExecution) Main entry point forPartitionHandlerinterface.StepExecutionSplitter.split(StepExecution stepExecution, int gridSize) Partition the providedStepExecutioninto a set of parallel executable instances with the same parentJobExecution.Methods in org.springframework.batch.core.partition with parameters of type StepExecutionModifier and TypeMethodDescriptionPartitionHandler.handle(StepExecutionSplitter stepSplitter, StepExecution stepExecution) Main entry point forPartitionHandlerinterface.StepExecutionSplitter.split(StepExecution stepExecution, int gridSize) Partition the providedStepExecutioninto a set of parallel executable instances with the same parentJobExecution. -
Uses of StepExecution in org.springframework.batch.core.partition.support
Methods in org.springframework.batch.core.partition.support that return types with arguments of type StepExecutionModifier and TypeMethodDescriptionprotected FutureTask<StepExecution>TaskExecutorPartitionHandler.createTask(Step step, StepExecution stepExecution) Creates the task executing the given step in the context of the given execution.protected abstract Set<StepExecution>AbstractPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) Executes the specifiedStepExecutioninstances and returns an updated view of them.protected Set<StepExecution>TaskExecutorPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) AbstractPartitionHandler.handle(StepExecutionSplitter stepSplitter, StepExecution managerStepExecution) SimpleStepExecutionSplitter.split(StepExecution stepExecution, int gridSize) Methods in org.springframework.batch.core.partition.support with parameters of type StepExecutionModifier and TypeMethodDescriptionvoidDefaultStepExecutionAggregator.aggregate(StepExecution result, Collection<StepExecution> executions) Aggregates the input executions into the resultStepExecution.voidRemoteStepExecutionAggregator.aggregate(StepExecution result, Collection<StepExecution> executions) Aggregates the input executions into the resultStepExecutiondelegating to the delegate aggregator once the input has been refreshed from theJobExplorer.voidStepExecutionAggregator.aggregate(StepExecution result, Collection<StepExecution> executions) Take the inputs and aggregate, putting the aggregates into the result.protected FutureTask<StepExecution>TaskExecutorPartitionHandler.createTask(Step step, StepExecution stepExecution) Creates the task executing the given step in the context of the given execution.protected voidPartitionStep.doExecute(StepExecution stepExecution) Delegate execution to thePartitionHandlerprovided.protected abstract Set<StepExecution>AbstractPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) Executes the specifiedStepExecutioninstances and returns an updated view of them.protected Set<StepExecution>TaskExecutorPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) AbstractPartitionHandler.handle(StepExecutionSplitter stepSplitter, StepExecution managerStepExecution) protected booleanSimpleStepExecutionSplitter.isStartable(StepExecution stepExecution, ExecutionContext context) Check if a step execution is startable.SimpleStepExecutionSplitter.split(StepExecution stepExecution, int gridSize) Method parameters in org.springframework.batch.core.partition.support with type arguments of type StepExecutionModifier and TypeMethodDescriptionvoidDefaultStepExecutionAggregator.aggregate(StepExecution result, Collection<StepExecution> executions) Aggregates the input executions into the resultStepExecution.voidRemoteStepExecutionAggregator.aggregate(StepExecution result, Collection<StepExecution> executions) Aggregates the input executions into the resultStepExecutiondelegating to the delegate aggregator once the input has been refreshed from theJobExplorer.voidStepExecutionAggregator.aggregate(StepExecution result, Collection<StepExecution> executions) Take the inputs and aggregate, putting the aggregates into the result.protected abstract Set<StepExecution>AbstractPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) Executes the specifiedStepExecutioninstances and returns an updated view of them.protected Set<StepExecution>TaskExecutorPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) -
Uses of StepExecution in org.springframework.batch.core.repository
Methods in org.springframework.batch.core.repository that return StepExecutionModifier and TypeMethodDescriptionJobRepository.getLastStepExecution(JobInstance jobInstance, String stepName) Methods in org.springframework.batch.core.repository with parameters of type StepExecutionModifier and TypeMethodDescriptionvoidJobRepository.add(StepExecution stepExecution) Save theStepExecutionand itsExecutionContext.default voidJobRepository.deleteStepExecution(StepExecution stepExecution) Delete the step execution along with its execution context.voidJobRepository.update(StepExecution stepExecution) Update theStepExecution(but not itsExecutionContext).voidJobRepository.updateExecutionContext(StepExecution stepExecution) Persist the updatedExecutionContexts of the givenStepExecution.Method parameters in org.springframework.batch.core.repository with type arguments of type StepExecutionModifier and TypeMethodDescriptionvoidJobRepository.addAll(Collection<StepExecution> stepExecutions) Save a collection ofStepExecutions and eachExecutionContext. -
Uses of StepExecution in org.springframework.batch.core.repository.dao
Methods in org.springframework.batch.core.repository.dao that return StepExecutionModifier and TypeMethodDescriptionJdbcStepExecutionDao.getLastStepExecution(JobInstance jobInstance, String stepName) default StepExecutionStepExecutionDao.getLastStepExecution(JobInstance jobInstance, String stepName) Retrieve the lastStepExecutionfor a givenJobInstanceordered by creation time and then id.JdbcStepExecutionDao.getStepExecution(JobExecution jobExecution, Long stepExecutionId) StepExecutionDao.getStepExecution(JobExecution jobExecution, Long stepExecutionId) Retrieve aStepExecutionfrom its id.Methods in org.springframework.batch.core.repository.dao with parameters of type StepExecutionModifier and TypeMethodDescriptiondefault voidExecutionContextDao.deleteExecutionContext(StepExecution stepExecution) Delete the execution context of the givenStepExecution.voidJdbcExecutionContextDao.deleteExecutionContext(StepExecution stepExecution) Delete the execution context of the givenStepExecution.voidJdbcStepExecutionDao.deleteStepExecution(StepExecution stepExecution) Delete the given step execution.default voidStepExecutionDao.deleteStepExecution(StepExecution stepExecution) Delete the given step execution.ExecutionContextDao.getExecutionContext(StepExecution stepExecution) JdbcExecutionContextDao.getExecutionContext(StepExecution stepExecution) voidExecutionContextDao.saveExecutionContext(StepExecution stepExecution) Persist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet.voidJdbcExecutionContextDao.saveExecutionContext(StepExecution stepExecution) voidJdbcStepExecutionDao.saveStepExecution(StepExecution stepExecution) Save a StepExecution.voidStepExecutionDao.saveStepExecution(StepExecution stepExecution) Save the given StepExecution.voidExecutionContextDao.updateExecutionContext(StepExecution stepExecution) Persist the updates of execution context associated with the given stepExecution.voidJdbcExecutionContextDao.updateExecutionContext(StepExecution stepExecution) voidJdbcStepExecutionDao.updateStepExecution(StepExecution stepExecution) voidStepExecutionDao.updateStepExecution(StepExecution stepExecution) Update the given StepExecutionMethod parameters in org.springframework.batch.core.repository.dao with type arguments of type StepExecutionModifier and TypeMethodDescriptionvoidExecutionContextDao.saveExecutionContexts(Collection<StepExecution> stepExecutions) Persist the execution context associated with each stepExecution in a given collection, persistent entry for the context should not exist yet.voidJdbcExecutionContextDao.saveExecutionContexts(Collection<StepExecution> stepExecutions) voidJdbcStepExecutionDao.saveStepExecutions(Collection<StepExecution> stepExecutions) Batch insert StepExecutionsvoidStepExecutionDao.saveStepExecutions(Collection<StepExecution> stepExecutions) Save the given collection of StepExecution as a batch. -
Uses of StepExecution in org.springframework.batch.core.repository.support
Methods in org.springframework.batch.core.repository.support that return StepExecutionModifier and TypeMethodDescriptionSimpleJobRepository.getLastStepExecution(JobInstance jobInstance, String stepName) Methods in org.springframework.batch.core.repository.support with parameters of type StepExecutionModifier and TypeMethodDescriptionvoidSimpleJobRepository.add(StepExecution stepExecution) voidSimpleJobRepository.deleteStepExecution(StepExecution stepExecution) voidSimpleJobRepository.update(StepExecution stepExecution) voidSimpleJobRepository.updateExecutionContext(StepExecution stepExecution) Method parameters in org.springframework.batch.core.repository.support with type arguments of type StepExecutionModifier and TypeMethodDescriptionvoidSimpleJobRepository.addAll(Collection<StepExecution> stepExecutions) -
Uses of StepExecution in org.springframework.batch.core.resource
Methods in org.springframework.batch.core.resource with parameters of type StepExecutionModifier and TypeMethodDescriptionvoidStepExecutionSimpleCompletionPolicy.beforeStep(StepExecution stepExecution) Set up aSimpleCompletionPolicywith a commit interval taken from theJobParameters. -
Uses of StepExecution in org.springframework.batch.core.scope.context
Methods in org.springframework.batch.core.scope.context that return StepExecutionModifier and TypeMethodDescriptionStepContext.getStepExecution()The currentStepExecutionthat is active in this context.Methods in org.springframework.batch.core.scope.context with parameters of type StepExecutionModifier and TypeMethodDescriptionvoidStepScopeManager.execute(Step step, StepExecution stepExecution) static StepContextStepSynchronizationManager.register(StepExecution stepExecution) Register a context with the current thread - always put a matchingStepSynchronizationManager.close()call in a finally block to ensure that the correct context is available in the enclosing block.Constructors in org.springframework.batch.core.scope.context with parameters of type StepExecutionModifierConstructorDescriptionStepContext(StepExecution stepExecution) Create a new instance ofStepContextfor thisStepExecution.StepContextRepeatCallback(StepExecution stepExecution) -
Uses of StepExecution in org.springframework.batch.core.step
Methods in org.springframework.batch.core.step with parameters of type StepExecutionModifier and TypeMethodDescriptionNoWorkFoundStepExecutionListener.afterStep(StepExecution stepExecution) voidStepInterruptionPolicy.checkInterrupted(StepExecution stepExecution) Has the job been interrupted? If so then throw aJobInterruptedException.voidThreadStepInterruptionPolicy.checkInterrupted(StepExecution stepExecution) Returns if the current job lifecycle has been interrupted by checking if the current thread is interrupted.protected abstract voidAbstractStep.doExecute(StepExecution stepExecution) Extension point for subclasses to execute business logic.protected voidAbstractStep.doExecutionRegistration(StepExecution stepExecution) Registers theStepExecutionfor property resolution viaStepScopefinal voidAbstractStep.execute(StepExecution stepExecution) Template method for step execution logic - calls abstract methods for resource initialization (AbstractStep.open(ExecutionContext)), execution logic (AbstractStep.doExecute(StepExecution)) and resource closing (AbstractStep.close(ExecutionContext)). -
Uses of StepExecution in org.springframework.batch.core.step.item
Methods in org.springframework.batch.core.step.item with parameters of type StepExecutionModifier and TypeMethodDescriptionprotected voidSimpleChunkProcessor.stopTimer(io.micrometer.core.instrument.Timer.Sample sample, StepExecution stepExecution, String metricName, String status, String description) -
Uses of StepExecution in org.springframework.batch.core.step.job
Methods in org.springframework.batch.core.step.job with parameters of type StepExecutionModifier and TypeMethodDescriptionprotected voidJobStep.doExecute(StepExecution stepExecution) Execute the job provided by delegating to theJobLauncherto prevent duplicate executions.DefaultJobParametersExtractor.getJobParameters(Job job, StepExecution stepExecution) JobParametersExtractor.getJobParameters(Job job, StepExecution stepExecution) Extract job parameters from the step execution, for example from the execution context or other properties. -
Uses of StepExecution in org.springframework.batch.core.step.tasklet
Methods in org.springframework.batch.core.step.tasklet with parameters of type StepExecutionModifier and TypeMethodDescriptionvoidSystemCommandTasklet.beforeStep(StepExecution stepExecution) Get a reference toStepExecutionfor interrupt checks during system command execution.protected voidTaskletStep.doExecute(StepExecution stepExecution) Process the step and update its context so that progress can be monitored by the caller. -
Uses of StepExecution in org.springframework.batch.integration.chunk
Methods in org.springframework.batch.integration.chunk with parameters of type StepExecutionModifier and TypeMethodDescriptionChunkMessageChannelItemWriter.afterStep(StepExecution stepExecution) voidChunkMessageChannelItemWriter.beforeStep(StepExecution stepExecution) voidChunkMessageChannelItemWriter.LocalState.setStepExecution(StepExecution stepExecution) -
Uses of StepExecution in org.springframework.batch.integration.partition
Methods in org.springframework.batch.integration.partition that return StepExecutionModifier and TypeMethodDescriptionStepExecutionRequestHandler.handle(StepExecutionRequest request) Methods in org.springframework.batch.integration.partition that return types with arguments of type StepExecutionModifier and TypeMethodDescriptionprotected Set<StepExecution>MessageChannelPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) SendsStepExecutionRequestobjects to the request channel of theMessagingTemplate, and then receives the result back as a list ofStepExecutionon a reply channel.Methods in org.springframework.batch.integration.partition with parameters of type StepExecutionModifier and TypeMethodDescriptionprotected Set<StepExecution>MessageChannelPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) SendsStepExecutionRequestobjects to the request channel of theMessagingTemplate, and then receives the result back as a list ofStepExecutionon a reply channel.Method parameters in org.springframework.batch.integration.partition with type arguments of type StepExecutionModifier and TypeMethodDescriptionprotected Set<StepExecution>MessageChannelPartitionHandler.doHandle(StepExecution managerStepExecution, Set<StepExecution> partitionStepExecutions) SendsStepExecutionRequestobjects to the request channel of theMessagingTemplate, and then receives the result back as a list ofStepExecutionon a reply channel. -
Uses of StepExecution in org.springframework.batch.integration.step
Methods in org.springframework.batch.integration.step with parameters of type StepExecutionModifier and TypeMethodDescriptionprotected voidDelegateStep.doExecute(StepExecution stepExecution) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of StepExecution in org.springframework.batch.test
Methods in org.springframework.batch.test that return StepExecutionModifier and TypeMethodDescriptionstatic StepExecutionMetaDataInstanceFactory.createStepExecution()Create aStepExecutionwith default parameters.static StepExecutionMetaDataInstanceFactory.createStepExecution(String stepName, Long executionId) Create aStepExecutionwith the parameters provided.static StepExecutionMetaDataInstanceFactory.createStepExecution(JobExecution jobExecution, String stepName, Long executionId) Create aStepExecutionwith the parameters provided.static StepExecutionMetaDataInstanceFactory.createStepExecution(JobParameters jobParameters) Create aStepExecutionand all its parent entities with default values, but using theJobParametersprovided.static StepExecutionMetaDataInstanceFactory.createStepExecution(JobParameters jobParameters, ExecutionContext executionContext) Create aStepExecutionand all its parent entities with default values, but using theExecutionContextandJobParametersprovided.static StepExecutionMetaDataInstanceFactory.createStepExecution(ExecutionContext executionContext) Create aStepExecutionand all its parent entities with default values, but using theExecutionContextprovided.protected StepExecutionStepScopeTestExecutionListener.getStepExecution(org.springframework.test.context.TestContext testContext) Discover aStepExecutionas a field in the test case or create one if none is available.Methods in org.springframework.batch.test with parameters of type StepExecutionModifier and TypeMethodDescriptionstatic <T> TStepScopeTestUtils.doInStepScope(StepExecution stepExecution, Callable<T> callable) static <T> TExecutionContextTestUtils.getValueFromStep(StepExecution stepExecution, String key)