Spring Batch(一)
来源:互联网 发布:vps绑定阿里域名 编辑:程序博客网 时间:2024/05/16 06:47
最近因为工作需要抽空学习了一下Spring Batch,本次学习基于Spring Batch2.1.8。
Spring Batch是一个进行批处理的框架,系统中可能会有需要在后台执行的不需要人工干预的任务处理要求,比如说定时计算报表数据,定时抽取数据等。
先来看Spring Batch官方给出的两张图:
从图中可以看到Spring Batch被划分为三个模块,Application,Core,Infrastructure,这三个模块的定义是这样的:
The Infrastructure provides the ability to batch operations together, and to retry an piece of work if there is an exception.
The Core module is the batch-focused domain and implementation.
The Application module is focused on the business logic.
从三个模块的定义可以看出三个模块分别的关注点,Infrastructure 提供了一些基础服务,Core提供了批处理领域相关的模型,Application则主要关注业务处理逻辑。平常对于使用Spring Batch主要在Application模块。
Core模块专注于批处理领域,它的设计采用了Domain-Driven Design,极大的简化了理解的难度。最后设计出来的领域模型如下图:
A Job has one to many steps, which has exactly one ItemReader, ItemProcessor, and ItemWriter. A job needs to be launched (JobLauncher), and meta data about the currently running process needs to be stored (JobRepository).
下面是JOB相关的几个概念的类图
从中可以看到一个JobInstance = Job + JobParameters,即表示Job运行时的一种状态,如图所示。
对应的表结构如下,这里只是列举一些表明关系的字段。
总体表结构
- Spring Batch(一)
- Spring Batch(一)
- Spring Batch 简介(一)
- Spring Batch 之 Spring Batch 简介(一)
- Spring Batch 之 Spring Batch 简介(一)
- Spring Batch 之 Spring Batch 简介(一)
- Spring Batch 之 Spring Batch 简介(一)
- Spring Batch 之 Spring Batch 简介(一)
- spring batch介绍(一)
- Spring batch基础一
- spring batch(一):基础部分
- spring batch(一):基础部分
- spring batch(一):基础部分
- spring batch(一):基础部分
- spring batch(一):基础部分
- Spring Batch学习之路- 简介(一)
- Spring Batch 2.1.8 中文文档(一)
- Spring Batch 2.1.8 中文文档(一)
- 用实例给新手讲解RSA加密算法
- Address already in use: JVM_Bind错误的解决
- Windows7通过telnet连接服务器
- 无法定位序数于动态库mfc90d.dll上 由于应用程序配置不正确...解决方法
- jquery获取浏览器类型和版本号方法
- Spring Batch(一)
- cs硕士妹子找工作经历【阿里人搜等互联网】
- STM32工程的建立方法
- TBXML常用API
- json数组作为参数传递给java时候object问题
- mysql 去除重复 Select中DISTINCT关键字的用法
- C#文件、目录操作相关函数
- RHEL / CentOS: Install and Activate Bash Autocomplete Feature
- java中的动态代理