调度中心与执行器通讯规范为双向restful,方便跨语言,以及第三方执行器实现;通讯组件xxl-rpc方案调整为Jetty+Gson方案;

This commit is contained in:
xuxueli 2020-04-12 02:40:15 +08:00
parent 94cf82475b
commit 77bcfd65e0
3 changed files with 10 additions and 5 deletions

View File

@ -1277,13 +1277,14 @@ XXL-JOB日志主要包含如下两部分均支持日志自动清理说明
## 六、调度中心/执行器 RESTful API ## 六、调度中心/执行器 RESTful API
Java语言应用可以直接通过官方提供的调度中心与执行器方便快速的接入和使用调度中心可以上文 “快速入门” 章节。 Java语言应用可以直接通过官方提供的调度中心与执行器方便快速的接入和使用调度中心可以参考上文 “快速入门” 章节。
非Java语言可借助 XXL-JOB 提供的标准 RESTful API 方便的实现多语言支持。 非Java语言可借助 XXL-JOB 的标准 RESTful API 方便的实现多语言支持。
- 调度中心 RESTful API除管理平台之外可据此通过API服务管理在线任务。 - 调度中心 RESTful API提供给执行器使用的API用于执行器注册以及任务结果回调等
- 执行器 RESTful API 执行器标准API可参考该API实现非Java语言的个性化执行器. - 执行器 RESTful API 提供给调度中心使用的API用于接受调度中心发送的任务调度、任务终止、查看日志……等
此处 RESTful API 主要用于非Java语言定制个性化执行器使用。除此之外如果有需要通过API操作调度中心可以个性化扩展 “调度中心 RESTful API” 并使用。
### 6.1 调度中心 RESTful API ### 6.1 调度中心 RESTful API

View File

@ -23,7 +23,7 @@ mybatis.mapper-locations=classpath:/mybatis-mapper/*Mapper.xml
#mybatis.type-aliases-package=com.xxl.job.admin.core.model #mybatis.type-aliases-package=com.xxl.job.admin.core.model
### xxl-job, datasource ### xxl-job, datasource
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai spring.datasource.url=jdbc:mysql://192.168.99.100:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=root_pwd spring.datasource.password=root_pwd
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

View File

@ -41,4 +41,8 @@ public interface AdminBiz {
*/ */
public ReturnT<String> registryRemove(RegistryParam registryParam); public ReturnT<String> registryRemove(RegistryParam registryParam);
// ---------------------- biz (custome) ----------------------
// groupjob ... manage
} }