项目组成结构
antares
``antares-server 服务器运行服务,提供web api调用
``antares-store 对数据库的操作,封装对server的web api调用
``antares-common 公共工具
``antares-tower 控制台
``antares-client 执行器
``antares-client-spring springboot模式-执行器执行类
``antares-demo springboot模式开启执行器,jobclass的存放容器
项目业务结构
服务器层
antares
``antares-server
``antares-store
``antares-common
控制台层
antares
``antares-tower
``antares-store
``antares-common
执行器层
antares
``antares-demo
``antares-client-spring
``antares-client
``antares-common
antares-server(服务器运行容器)
用途:1.服务器端的任务调度开启,只管job线程的开启(判断可以生成实例再进行判断执行具体的jobclass)
· 2.服务器可以进行集群,通过选举机制,领导者监控客户端的动态
3.通过选举机制,领导者监控其他服务器的动态
4.针对外界发来的api请求进行调度的各种控制操作,任务的启动,停止,更新等等操作
antares-tower(控制台运行容器)
用途:1.发送api请求到server层进行调度的各种控制操作,任务的启动,停止,更新等等操作
2.监控任务的进度情况
3.查看任务实例的历史执行情况
antares-demo(执行器运行容器)
用途:1.定义job执行的类
2.监听zk的节点变化,进行job实例的生成和执行相关的逻辑业务
3.可以和其他执行器进行集群,分片处理任务