| Package | Description |
|---|---|
| org.springframework.batch.core |
Core domain context for Spring Batch covering jobs, steps,
configuration and execution abstractions.
|
| org.springframework.batch.core.converter |
Support classes for implementations of the batch APIs.
|
| org.springframework.batch.core.job |
Specific implementations of job concerns.
|
| 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.dao |
Specific implementations of dao concerns.
|
| org.springframework.batch.core.repository.support |
Specific implementations of repository concerns.
|
| org.springframework.batch.core.step.job |
| Modifier and Type | Method and Description |
|---|---|
JobParameters |
StepExecution.getJobParameters()
Convenience method to get the current job parameters.
|
JobParameters |
JobExecution.getJobParameters() |
JobParameters |
JobParametersIncrementer.getNext(JobParameters parameters)
Increment the provided parameters.
|
JobParameters |
JobParametersBuilder.toJobParameters()
Conversion method that takes the current state of this builder and
returns it as a JobruntimeParameters object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
DefaultJobKeyGenerator.generateKey(JobParameters source)
Generates the job key to be used based on the
JobParameters instance
provided. |
JobParameters |
JobParametersIncrementer.getNext(JobParameters parameters)
Increment the provided parameters.
|
void |
JobParametersValidator.validate(JobParameters parameters)
Check the parameters meet whatever requirements are appropriate, and
throw an exception if not.
|
| Constructor and Description |
|---|
JobExecution(JobInstance job,
JobParameters jobParameters)
Constructor for transient (unsaved) instances.
|
JobExecution(JobInstance job,
Long id,
JobParameters jobParameters)
Because a JobExecution isn't valid unless the job is set, this
constructor is the only valid one from a modeling point of view.
|
JobExecution(Long id,
JobParameters jobParameters) |
JobParametersBuilder(JobParameters jobParameters)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
JobParameters |
JobParametersConverter.getJobParameters(Properties properties)
Get a new
JobParameters instance. |
JobParameters |
DefaultJobParametersConverter.getJobParameters(Properties props)
Check for suffix on keys and use those to decide how to convert the
value.
|
| Modifier and Type | Method and Description |
|---|---|
Properties |
JobParametersConverter.getProperties(JobParameters params)
The inverse operation: get a
Properties instance. |
Properties |
DefaultJobParametersConverter.getProperties(JobParameters params)
Use the same suffixes to create properties (omitting the string suffix
because it is the default).
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultJobParametersValidator.validate(JobParameters parameters)
Check the parameters meet the specification provided.
|
void |
CompositeJobParametersValidator.validate(JobParameters parameters)
Validates the JobParameters according to the injected JobParameterValidators
Validation stops and exception is thrown on first validation error
|
| Modifier and Type | Method and Description |
|---|---|
JobExecution |
JobLauncher.run(Job job,
JobParameters jobParameters)
Start a job execution for the given
Job and JobParameters
. |
| Modifier and Type | Method and Description |
|---|---|
JobParameters |
ScheduledJobParametersFactory.getJobParameters(Properties props) |
JobParameters |
RunIdIncrementer.getNext(JobParameters parameters)
Increment the run.id parameter (starting with 1).
|
| Modifier and Type | Method and Description |
|---|---|
JobParameters |
RunIdIncrementer.getNext(JobParameters parameters)
Increment the run.id parameter (starting with 1).
|
Properties |
ScheduledJobParametersFactory.getProperties(JobParameters params)
Convert schedule date to Date, and assume all other parameters can be represented by their default string value.
|
JobExecution |
SimpleJobLauncher.run(Job job,
JobParameters jobParameters)
Run the provided job with the given
JobParameters. |
| Modifier and Type | Method and Description |
|---|---|
JobExecution |
JobRepository.createJobExecution(String jobName,
JobParameters jobParameters)
|
JobExecution |
JobRepository.getLastJobExecution(String jobName,
JobParameters jobParameters) |
boolean |
JobRepository.isJobInstanceExists(String jobName,
JobParameters jobParameters)
Check if an instance of this job already exists with the parameters
provided.
|
| Modifier and Type | Method and Description |
|---|---|
protected JobParameters |
JdbcJobExecutionDao.getJobParameters(Long executionId) |
| Modifier and Type | Method and Description |
|---|---|
JobInstance |
MapJobInstanceDao.createJobInstance(String jobName,
JobParameters jobParameters) |
JobInstance |
JobInstanceDao.createJobInstance(String jobName,
JobParameters jobParameters)
Create a JobInstance with given name and parameters.
|
JobInstance |
JdbcJobInstanceDao.createJobInstance(String jobName,
JobParameters jobParameters)
In this jdbc implementation a job id is obtained by asking the
jobIncrementer (which is likely a sequence) for the next long value, and
then passing the Id and parameter values into an INSERT statement.
|
JobInstance |
MapJobInstanceDao.getJobInstance(String jobName,
JobParameters jobParameters) |
JobInstance |
JobInstanceDao.getJobInstance(String jobName,
JobParameters jobParameters)
Find the job instance that matches the given name and parameters.
|
JobInstance |
JdbcJobInstanceDao.getJobInstance(String jobName,
JobParameters jobParameters)
The job table is queried for any jobs that match the
given identifier, adding them to a list via the RowMapper callback.
|
| Modifier and Type | Method and Description |
|---|---|
JobExecution |
SimpleJobRepository.createJobExecution(String jobName,
JobParameters jobParameters) |
JobExecution |
SimpleJobRepository.getLastJobExecution(String jobName,
JobParameters jobParameters) |
boolean |
SimpleJobRepository.isJobInstanceExists(String jobName,
JobParameters jobParameters) |
| Modifier and Type | Method and Description |
|---|---|
JobParameters |
JobParametersExtractor.getJobParameters(Job job,
StepExecution stepExecution)
Extract job parameters from the step execution, for example from the
execution context or other properties.
|
JobParameters |
DefaultJobParametersExtractor.getJobParameters(Job job,
StepExecution stepExecution) |
Copyright © 2014. All rights reserved.