Uses of Class
org.springframework.batch.item.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
Modifier and TypeMethodDescriptionJobExecution.getExecutionContext()
Returns theExecutionContext
for this execution.StepExecution.getExecutionContext()
Returns theExecutionContext
for this execution.Modifier 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
Modifier and TypeMethodDescriptionvoid
SimpleStepHandler.setExecutionContext
(ExecutionContext executionContext) A context containing values to be added to the step execution before it is handled.ModifierConstructorDescriptionSimpleStepHandler
(JobRepository jobRepository, ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.core.partition.support
Modifier 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) Modifier 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
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionvoid
ChunkMonitor.open
(ExecutionContext executionContext) void
ChunkMonitor.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.core.step.tasklet
Modifier and TypeMethodDescriptionprotected void
TaskletStep.close
(ExecutionContext ctx) protected void
TaskletStep.open
(ExecutionContext ctx) -
Uses of ExecutionContext in org.springframework.batch.integration.async
Modifier and TypeMethodDescriptionvoid
AsyncItemWriter.open
(ExecutionContext executionContext) void
AsyncItemWriter.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.integration.chunk
Modifier and TypeMethodDescriptionvoid
ChunkMessageChannelItemWriter.open
(ExecutionContext executionContext) void
ChunkMessageChannelItemWriter.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.item
Modifier 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)
()}.ModifierConstructorDescriptionExecutionContext
(ExecutionContext executionContext) Initializes a newExecutionContext
with the contents of anotherExecutionContext
. -
Uses of ExecutionContext in org.springframework.batch.item.avro
-
Uses of ExecutionContext in org.springframework.batch.item.database
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionvoid
KafkaItemReader.open
(ExecutionContext executionContext) void
KafkaItemReader.update
(ExecutionContext executionContext) -
Uses of ExecutionContext in org.springframework.batch.item.redis
-
Uses of ExecutionContext in org.springframework.batch.item.support
Modifier 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
Modifier 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
Modifier 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)
()}.