Uses of Class
org.springframework.batch.item.ExecutionContext
Packages that use ExecutionContext
Package
Description
Core domain context for Spring Batch covering jobs, steps, configuration and execution
abstractions.
Specific implementations of job concerns.
Implementation of common partition components.
Specific implementations of dao concerns.
Specific implementations of step concerns.
Specific implementations of step concerns for item-oriented approach.
Interfaces and generic implementations of tasklet concerns.
Components for executing item processing asynchronously and writing the results when
processing is complete.
Components for remote chunking.
Infrastructure interfaces and primary dependencies for item concerns.
Infrastructure implementations of database based item readers and writers.
Infrastructure implementations of io file concerns.
Apache Kafka related readers and writers
Internal support package
Infrastructure implementations of xml input and output.
Utility classes for batch job/step testing.
-
Uses of ExecutionContext in org.springframework.batch.core
Methods in org.springframework.batch.core that return ExecutionContextModifier and TypeMethodDescriptionJobExecution.getExecutionContext()
Returns theExecutionContext
for this execution.StepExecution.getExecutionContext()
Returns theExecutionContext
for this execution.Methods in org.springframework.batch.core with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
JobExecution.setExecutionContext
(ExecutionContext executionContext) Sets theExecutionContext
for this execution.void
StepExecution.setExecutionContext
(ExecutionContext executionContext) Sets theExecutionContext
for this execution. -
Uses of ExecutionContext in org.springframework.batch.core.job
Methods in org.springframework.batch.core.job with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
SimpleStepHandler.setExecutionContext
(ExecutionContext executionContext) A context containing values to be added to the step execution before it is handled.Constructors in org.springframework.batch.core.job with parameters of type ExecutionContextModifierConstructorDescriptionSimpleStepHandler
(JobRepository jobRepository, ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.core.partition.support
Methods in org.springframework.batch.core.partition.support that return types with arguments of type ExecutionContextModifier and TypeMethodDescriptionMultiResourcePartitioner.partition
(int gridSize) Assign the filename of each of the injected resources to anExecutionContext
.Partitioner.partition
(int gridSize) Create a set of distinctExecutionContext
instances together with a unique identifier for each one.SimplePartitioner.partition
(int gridSize) Methods in org.springframework.batch.core.partition.support with parameters of type ExecutionContextModifier and TypeMethodDescriptionprotected boolean
SimpleStepExecutionSplitter.isStartable
(StepExecution stepExecution, ExecutionContext context) Check if a step execution is startable. -
Uses of ExecutionContext in org.springframework.batch.core.repository.dao
Methods in org.springframework.batch.core.repository.dao that return ExecutionContextModifier and TypeMethodDescriptionExecutionContextDao.getExecutionContext
(JobExecution jobExecution) ExecutionContextDao.getExecutionContext
(StepExecution stepExecution) JdbcExecutionContextDao.getExecutionContext
(JobExecution jobExecution) JdbcExecutionContextDao.getExecutionContext
(StepExecution stepExecution) -
Uses of ExecutionContext in org.springframework.batch.core.step
Methods in org.springframework.batch.core.step with parameters of type ExecutionContextModifier and TypeMethodDescriptionprotected void
AbstractStep.close
(ExecutionContext ctx) Extension point for subclasses to provide callbacks to their collaborators at the end of a step (right at the end of the finally block), to close or release resources.protected void
AbstractStep.open
(ExecutionContext ctx) Extension point for subclasses to provide callbacks to their collaborators at the beginning of a step, to open or acquire resources. -
Uses of ExecutionContext in org.springframework.batch.core.step.item
Methods in org.springframework.batch.core.step.item with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
ChunkMonitor.open
(ExecutionContext executionContext) void
ChunkMonitor.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.core.step.tasklet
Methods in org.springframework.batch.core.step.tasklet with parameters of type ExecutionContextModifier and TypeMethodDescriptionprotected void
TaskletStep.close
(ExecutionContext ctx) protected void
TaskletStep.open
(ExecutionContext ctx) -
Uses of ExecutionContext in org.springframework.batch.integration.async
Methods in org.springframework.batch.integration.async with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
AsyncItemWriter.open
(ExecutionContext executionContext) void
AsyncItemWriter.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.integration.chunk
Methods in org.springframework.batch.integration.chunk with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
ChunkMessageChannelItemWriter.open
(ExecutionContext executionContext) void
ChunkMessageChannelItemWriter.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.item
Methods in org.springframework.batch.item with parameters of type ExecutionContextModifier and TypeMethodDescriptiondefault void
ItemStream.open
(ExecutionContext executionContext) Open the stream for the providedExecutionContext
.void
ItemStreamSupport.open
(ExecutionContext executionContext) Deprecated, for removal: This API element is subject to removal in a future version.default void
ItemStream.update
(ExecutionContext executionContext) Indicates that the execution context provided during open is about to be saved.void
ItemStreamSupport.update
(ExecutionContext executionContext) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favor ofItemStream.update(ExecutionContext)
()}.Constructors in org.springframework.batch.item with parameters of type ExecutionContextModifierConstructorDescriptionExecutionContext
(ExecutionContext executionContext) Initializes a newExecutionContext
with the contents of anotherExecutionContext
. -
Uses of ExecutionContext in org.springframework.batch.item.avro
Methods in org.springframework.batch.item.avro with parameters of type ExecutionContext -
Uses of ExecutionContext in org.springframework.batch.item.database
Methods in org.springframework.batch.item.database with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
JdbcPagingItemReader.open
(ExecutionContext executionContext) void
HibernateCursorItemReader.update
(ExecutionContext executionContext) Deprecated, for removal: This API element is subject to removal in a future version.Update the context and clear the session if stateful.void
JdbcPagingItemReader.update
(ExecutionContext executionContext) void
JpaCursorItemReader.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.item.file
Methods in org.springframework.batch.item.file with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
MultiResourceItemReader.open
(ExecutionContext executionContext) Figure out which resource to start with in case of restart, open the delegate and restore delegate's position in the resource.void
MultiResourceItemWriter.open
(ExecutionContext executionContext) void
ResourcesItemReader.open
(ExecutionContext executionContext) void
MultiResourceItemReader.update
(ExecutionContext executionContext) Store the current resource index and position in the resource.void
MultiResourceItemWriter.update
(ExecutionContext executionContext) void
ResourcesItemReader.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.item.kafka
Methods in org.springframework.batch.item.kafka with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
KafkaItemReader.open
(ExecutionContext executionContext) void
KafkaItemReader.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.item.redis
Methods in org.springframework.batch.item.redis with parameters of type ExecutionContext -
Uses of ExecutionContext in org.springframework.batch.item.support
Methods in org.springframework.batch.item.support with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
AbstractFileItemWriter.open
(ExecutionContext executionContext) Initialize the reader.void
AbstractItemCountingItemStreamItemReader.open
(ExecutionContext executionContext) void
CompositeItemStream.open
(ExecutionContext executionContext) Broadcast the call to open.void
CompositeItemWriter.open
(ExecutionContext executionContext) void
SingleItemPeekableItemReader.open
(ExecutionContext executionContext) If the delegate is anItemStream
, just pass the call on, otherwise reset the peek cache.void
SynchronizedItemStreamReader.open
(ExecutionContext executionContext) void
SynchronizedItemStreamWriter.open
(ExecutionContext executionContext) void
AbstractFileItemWriter.OutputState.restoreFrom
(ExecutionContext executionContext) void
AbstractFileItemWriter.update
(ExecutionContext executionContext) void
AbstractItemCountingItemStreamItemReader.update
(ExecutionContext executionContext) void
CompositeItemStream.update
(ExecutionContext executionContext) Simple aggregateExecutionContext
provider for the contributions registered under the given key.void
CompositeItemWriter.update
(ExecutionContext executionContext) void
SingleItemPeekableItemReader.update
(ExecutionContext executionContext) If there is a cached peek, then retrieve the execution context state from that point.void
SynchronizedItemStreamReader.update
(ExecutionContext executionContext) void
SynchronizedItemStreamWriter.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.item.xml
Methods in org.springframework.batch.item.xml with parameters of type ExecutionContextModifier and TypeMethodDescriptionvoid
StaxEventItemWriter.open
(ExecutionContext executionContext) Open the output sourcevoid
StaxEventItemWriter.update
(ExecutionContext executionContext) Get the restart data. -
Uses of ExecutionContext in org.springframework.batch.test
Methods in org.springframework.batch.test with parameters of type ExecutionContextModifier and TypeMethodDescriptionstatic StepExecution
MetaDataInstanceFactory.createStepExecution
(JobParameters jobParameters, ExecutionContext executionContext) Create aStepExecution
and all its parent entities with default values, but using theExecutionContext
andJobParameters
provided.static StepExecution
MetaDataInstanceFactory.createStepExecution
(ExecutionContext executionContext) Create aStepExecution
and all its parent entities with default values, but using theExecutionContext
provided.JobLauncherTestUtils.launchStep
(String stepName, JobParameters jobParameters, ExecutionContext jobExecutionContext) Launch just the specified step in a surrounding single-step job of typeSimpleJob
namedStepRunner.JOB_NAME
.JobLauncherTestUtils.launchStep
(String stepName, ExecutionContext jobExecutionContext) Launch just the specified step in a surrounding single-step job of typeSimpleJob
namedStepRunner.JOB_NAME
.StepRunner.launchStep
(Step step, JobParameters jobParameters, ExecutionContext jobExecutionContext) Launch just the specified step in a surrounding single-step job of typeSimpleJob
namedStepRunner.JOB_NAME
.StepRunner.launchStep
(Step step, ExecutionContext jobExecutionContext) Launch just the specified step in a surrounding single-step job of typeSimpleJob
namedStepRunner.JOB_NAME
.
ItemStream.open(ExecutionContext)
()}.