TRAINING SPRING
BATCH
Presenter Name: Nguyen Le Ngoc Ha
Presentation Date: 30/10/2014
Scheduler
The Scheduler provides scheduling
functionality.
Schedule job execution based on
time or events.
Tasklet
In Spring batch, the Tasklet is an
interface.
Which will be called to perform a
single task only, like clean or set up
resources before or after any step
execution.
Inheriting from a Parent Job
If a group of Jobs share similar, then
it may be helpful to define a
"parent" Job from which the
concrete Jobs may inherit properties.
Similar to class inheritance in Java,
the "child" Job will combine its
elements and attributes with the
parent's.
Batch Job Next, Skip
In order to handle more complex scenarios,
the Spring Batch namespace allows
transition elements to be defined within the
step element. One such transition is the
"next" element. Like the "next" attribute,
the "next" element will tell the Job which
Step to execute next.
Errors encountered while processing should
not result in Step failure, but should be
skipped instead.
Batch Status And Exit
Status
Batch status: Enumeration representing the
status of a an Execution.(http
://docs.spring.io/spring-batch/apidocs/org/s
pringframework/batch/core/
BatchStatus.html)
Exit Status: Value object used to carry
information about the status of a job or step
execution. ExitStatus is immutable and
therefore thread-safe.(http
://docs.spring.io/spring-batch/apidocs/org/s
pringframework/batch/core/
ExitStatus.html).
Job Parameters Validator
Validate parameter when you start a job.
Start-Stop Job
Thanks for watching