22 October 2020

#Spring_Batch

#Spring_Batch
Define A Job In Spring Batch Batch?
Define Executioncontext?
What is Spring Batch?
What is Spring Batch Admin?
What is the Basic Structure of Spring Batch?
What is batch processing architecture?
What is Job?
What is RunIdIncrementer in Spring Batch?
What is Step in Job?
What is JobLauncher?
What is ItemReader?
What is ItemWriter?
What is difference between Step, Chunk and Tasklet?
What is execution context in Spring Batch?
What is StepScope in Spring Batch?
What is Job Repository in Spring Batch?
What is Step Partition in Spring Batch?
What is Spring Batch Job Launcher?
What is remote chunking in Spring Batch?
What is difference between Remote Partitioning and Remote Chunking in Spring Batch?
What is Skip limit in Spring Batch?
What is JobBuilderFactory in Spring Batch?
What is Spring Batch Listener?
What is JobExecutionListener in Spring Batch?
What is StepExecutionListener in Spring Batch?
What is SkipListener in Spring Batch Listener
What is Tasklet in Spring Batch?
What are the key components of Spring Batch?
What is a JobInstance in Spring Batch?
What is a JobExecution in Spring Batch?
What is the role of an ItemReader in Spring Batch?
What is an ItemProcessor in Spring Batch?
What is an ItemWriter in Spring Batch?
What is a JobLauncher in Spring Batch?
What is a SkipPolicy in Spring Batch?
What Is Commandlinejobrunner In Spring Batch?
What Is Jobinstance?
What Are The Required Dependencies For Configuring A Job?
What Are Spring Batch Batch Metadata Schema?
What Is Itemreader In Spring Batch Batch Framework?
What Is The Default Isolation Level Of Spring Batch Batch Transactions?
What Is Itemprocessor?
What Are The Important Features Of Spring Batch Batch?
What Is A Cron Job?
What Are The Typical Processing Strategies In Spring Batch Batch?
What Is Executioncontext?
What Is The Latest Version Of Spring Batch Batch?
What Are The Different Bean Scope In Spring Batch 3.0?
What Job Configuration Consists Of?
What Is Resourceaware Is Spring Batch?
What Is Tasklet In Spring Batch Batch Framework?
What Is Itemwriter In Spring Batch Framework?
What Is Job Launcher In Spring Batch Framework?
Name Few Of The Domain Buzzwords In Spring Batch?
Explain the Spring Batch framework architecture?
Explain Spring Batch framework?
Explain the Spring Batch Framework Architecture
Explain the difference between a Job and a Step in the Spring Batch.
Explain Spring Batch Batch Framework.
Explain Parallel Processing In Spring Batch Batch Framework?
Explain Partitioning In Spring Batch Batch Framework?
Explain Concurrent Batch On-line Processing In Spring Batch Framework?
Explain Normal Processing Strategy In Spring Batch Framework?
Explain The Spring Batch Framework Architecture?
Explain The Role Of Jobrepository In Spring Batch?
Why to use "incrementer(new RunIdIncrementer())" while configuring Job?
How to initialize a Spring Batch Database?
How to configure the Job in Spring Batch?
How do I prevent all jobs in the context from being executed by default when the application starts up?
How to configure JobExecutionListener in Spring Batch?
How to configure StepExecutionListener in Spring Batch?
How Spring Batch works?
How to configure Spring Batch with Spring Boot?
How can we schedule a Spring Batch Job?
How Spring Batch Works
How does Spring Batch handle transaction management?
How can you configure a Spring Batch job using Java Configuration?
How do you restart a failed job in Spring Batch?
How can you handle item-level errors in Spring Batch?
How Do We Track The Number Of Item Processed By The Itemreader In Spring Batch Batch?
How Do I Schedule A Job With Spring Batch Batch?
How Cron Job Works In Linux?
How Can I Make An Item Reader Thread Safe In Spring Batch?
How Do I Start A Spring Batch Batch Job?
How Do I Configure A Job In Spring Batch Framework?
How Do You Categorize Batch Applications Based On Input Source In Spring Batch?
How Do You Run Spring Batch Jobs In Production Environment?
How Do I Setup Spring Batch Batch Job Without Using Xml?
When to Use Spring Batch?
Where batch processing is used?
Difference Between Step And Stepexecution?
Difference Between Spring Batch Batch And Quartz Scheduler?
Batch
  • Batch processing is a processing mode which involves execution of series of automated complex jobs without user interaction.
  • A batch process handles bulk data and runs for a long time.
  • Spring batch is a lightweight framework which is used to develop Batch Applications that are used in Enterprise Applications.
  • Spring batch is a lightweight framework which is used to develop Batch Applications that are used in Enterprise Applications.
    • Including logging and tracing
    • Transaction management
    • Job processing statistics
    • Job restart
    • Skip and Resource management
Core Concepts
  • Job: A Job in Spring Batch represents the entire batch process. It is composed of multiple steps and is configured using the JobBuilderFactory.
  • Step: Each Job consists of multiple Steps, where each Step represents an independent, sequential phase of the batch job. Steps are configured using the StepBuilderFactory.
  • JobRepository: This component is responsible for storing the metadata of the batch jobs. It helps in tracking the status of jobs and steps.
  • JobLauncher: This is used to launch a Job with a specified set of JobParameters.
  • JobParameters: These are parameters that can be passed to a Job at runtime. They make the job instance unique and can influence its execution.
  • ItemReader: This interface abstracts the reading of data from various sources. Common implementations include reading from databases, files, or other data sources.
  • ItemProcessor: This interface is used to process the data read by the ItemReader. It allows for data transformation.
  • ItemWriter: This interface is used to write the processed data to the desired destination, such as a database or a file.
Key Annotations
  • @EnableBatchProcessing:This annotation is used to enable Spring Batch features and provide a base configuration for setting up batch jobs.
  • @Configuration: Used for defining configuration classes. It is part of the Spring Framework.
Components
  • JobBuilderFactory and StepBuilderFactory:Factories to create Job and Step instances.
  • Tasklet: A simpler programming model for a step, typically used when a single operation needs to be performed, such as a database update or a file operation.
  • Chunk-Oriented Processing: This is a style of processing where the reading, processing, and writing of items are performed in chunks. This is useful for handling large amounts of data efficiently.
What does a Job in Spring Batch represent?
A single task
A collection of related steps*
An error handler
A database connection
Which of the following interfaces is responsible for reading input data in Spring Batch?
ItemReader*
ItemProcessor
ItemWriter
JobLauncher
Which component in Spring Batch processes data between reading and writing?
BatchReader
BatchProcessor
ItemProcessor*
DataTransformer
In Spring Batch, where is the metadata, like job execution details, stored?
In application properties
In main memory
In a JobRepository*
In an XML configuration
Which of the following is NOT a core interface in Spring Batch?
Job
Step
Tasklet
Batchlet*
In a Spring Batch process, if the ItemProcessor returns null, what happens to the current item?
It's written to the output.
It's passed again to the processor.
It's skipped from being written.*
It triggers an error.
Which component in Spring Batch provides callback methods for before and after job execution?
JobLauncher
JobExecutionListener*
JobOperator
StepExecutionListener
Which annotation in Spring Batch marks a method to run after a step is completed?
@AfterStep*
@PostStep
@StepComplete
@EndStep
What is a Chunk in the Context of Spring Batch?
A type of error
A single record of data
A collection of items processed together*
A method to save data
In which order do the three main interfaces (ItemReader, ItemProcessor, and ItemWriter) of Spring Batch operate?
Processor -> Reader -> Writer
Reader -> Writer -> Processor
Reader -> Processor -> Writer*
Writer -> Reader -> Processor
Which of the following is not a type of JobExecution status in Spring Batch?
STARTED
PAUSED*
COMPLETED
FAILED
What does a FlatFileItemReader in Spring Batch do?
Reads items from a flat file*
Writes items to a flat file
Processes items in memory
Communicates with a database
What does the @EnableBatchProcessing annotation do in Spring Batch?
Enables batch processing in a Spring application*
Marks a method for batch processing
Schedules a batch job
Initializes database connections
Which of the following listeners gets triggered before and after a step execution in Spring Batch?
JobExecutionListener
StepExecutionListener*
ChunkListener
ReaderListener
Which component in Spring Batch provides methods to manually start and stop jobs?
JobLauncher
JobRepository
JobOperator*
StepOperator
What does the JdbcCursorItemReader use to read records in Spring Batch?
Flat files
In-memory data
Database cursors*
Network streams
In Spring Batch, how can you skip specific records during processing?
Using a custom SkipPolicy
By returning null in the ItemProcessor
Setting the skipLimit property
Option A & Option C
Which component in Spring Batch provides a way to handle exceptions during processing?
ErrorHandler
SkipHandler
RetryTemplate*
ExceptionListener
In Spring Batch, what's the use of a JobBuilderFactory?
To launch a job
To store metadata about jobs
To create instances of Job*
To handle exceptions in a job

No comments:

Post a Comment

Most views on this month