0% found this document useful (1 vote)
91 views16 pages

Training Spring Batch: Presenter Name: Nguyen Le Ngoc Ha Presentation Date: 30/10/2014

The document summarizes key concepts in Spring Batch training including: 1. The Scheduler schedules job execution based on time or events. Tasklets perform single tasks like setup/cleanup before/after steps. 2. Jobs can inherit properties from a parent job when they share similarities, analogous to class inheritance. 3. Steps can define transition elements like "next" to handle complex scenarios, telling the job which step to execute next or skipping errors.

Uploaded by

Hà Nguyễn
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (1 vote)
91 views16 pages

Training Spring Batch: Presenter Name: Nguyen Le Ngoc Ha Presentation Date: 30/10/2014

The document summarizes key concepts in Spring Batch training including: 1. The Scheduler schedules job execution based on time or events. Tasklets perform single tasks like setup/cleanup before/after steps. 2. Jobs can inherit properties from a parent job when they share similarities, analogous to class inheritance. 3. Steps can define transition elements like "next" to handle complex scenarios, telling the job which step to execute next or skipping errors.

Uploaded by

Hà Nguyễn
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 16

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

You might also like