Tag: End filter exists in star Iter Sha Color Intermediate filter
#接上一篇 This article about persistence requires a table
Batch_job_execution,
Batch_job_execution_context,
Batch_job_execution_params,
Batch_job_execution_seq,
Batch_job_instance,
Batch_job_seq,
Batch_step_execution,
Batch_step_execution_context,
Batch_step_execution_seq
_seq end of the three tables, maintaining the sequence ID of batch_job_instance, batch_job_execution, Batch_step_execution.
Batch_job_instance table Job_instance_id:job ID is assigned version:job version number by BATCH_JOB_SEQ, same job executes multiple times with job_name:job name, consistent with spring configuration Job_key: The MD5 encoding of the job parameter, just because there is this field exists, the same job if the first run succeeds, the second run will throw a jobinstancealreadycompleteexception exception.
Batch_job_execution_params table: Record the parameters for each job job_execution_id the TYPE_CD parameter type assigned by BATCH_JOB_EXECUTION_SEQ Corresponds to the parameter type in the jobparameters key_name parameter key value string_val parameter value date_val parameter value long_val parameter value double_val parameter value identifying whether MD5 trueMD5
Batch_job_execution_context and Batch_step_execution_context tables save intermediate data in job and step runs and can be resumed the next time you run Step_execution_ Id:step Idshort_context:json ExecutionContext, such as {"Map": { "entry": { "string":"FlatFileItemReader.read.count", "int":Ten}}}serialized_context: ExecutionContext after serialization
Serialized_context: ExecutionContext after serialization
The approximate table structure is as above.
Spring Batch Learning Persistence table structure (2)