执行器示例项目规范整理

master
xueli.xue 4 years ago
parent 06ec530be3
commit 178253de5a
  1. 5
      doc/XXL-JOB官方文档.md
  2. 8
      xxl-job-executor-samples/xxl-job-executor-sample-jfinal/pom.xml
  3. 12
      xxl-job-executor-samples/xxl-job-executor-sample-jfinal/src/main/java/com/xuxueli/executor/sample/jfinal/XxlJobExecutorApplication.java
  4. 29
      xxl-job-executor-samples/xxl-job-executor-sample-jfinal/src/main/java/com/xuxueli/executor/sample/jfinal/config/JFinalCoreConfig.java

@ -2046,8 +2046,9 @@ data: post-data
- 8、调度线程连接池优化,修复连接有效性校验超时问题; - 8、调度线程连接池优化,修复连接有效性校验超时问题;
- 9、轮训路由策略优化,修复小概率下并发问题; - 9、轮训路由策略优化,修复小概率下并发问题;
- 10、执行器日志清理优化,修复小概率下日志文件为空导致清理异常问题; - 10、执行器日志清理优化,修复小概率下日志文件为空导致清理异常问题;
- 11、[规划中]任务触发参数优化:支持选择 "Cron触发"、"固定间隔时间触发"、"指定时间点触发"、"不选择" 等; - 11、执行器示例项目规范整理;
- 12、[规划中]分片任务:全部完成后才会出发后置节点; - 12、[规划中]任务触发参数优化:支持选择 "Cron触发"、"固定间隔时间触发"、"指定时间点触发"、"不选择" 等;
- 13、[规划中]分片任务:全部完成后才会出发后置节点;
### 7.32 版本 v2.3.0 Release Notes[规划中] ### 7.32 版本 v2.3.0 Release Notes[规划中]
- 1、[规划中]DAG流程任务 - 1、[规划中]DAG流程任务

@ -15,10 +15,16 @@
<!-- jfinal --> <!-- jfinal -->
<dependency> <dependency>
<groupId>com.jfinal</groupId> <groupId>com.jfinal</groupId>
<artifactId>jfinal</artifactId> <artifactId>jfinal-undertow</artifactId>
<version>2.2</version> <version>2.2</version>
</dependency> </dependency>
<dependency>
<groupId>com.jfinal</groupId>
<artifactId>jfinal</artifactId>
<version>4.9.02</version>
</dependency>
<!-- slf4j --> <!-- slf4j -->
<dependency> <dependency>
<groupId>org.slf4j</groupId> <groupId>org.slf4j</groupId>

@ -0,0 +1,12 @@
package com.xuxueli.executor.sample.jfinal;
import com.jfinal.server.undertow.UndertowServer;
import com.xuxueli.executor.sample.jfinal.config.JFinalCoreConfig;
public class XxlJobExecutorApplication {
public static void main(String[] args) {
UndertowServer.start(JFinalCoreConfig.class, 8082, true);
}
}

@ -3,6 +3,7 @@ package com.xuxueli.executor.sample.jfinal.config;
import com.jfinal.config.*; import com.jfinal.config.*;
import com.jfinal.kit.Prop; import com.jfinal.kit.Prop;
import com.jfinal.kit.PropKit; import com.jfinal.kit.PropKit;
import com.jfinal.template.Engine;
import com.xuxueli.executor.sample.jfinal.controller.IndexController; import com.xuxueli.executor.sample.jfinal.controller.IndexController;
import com.xuxueli.executor.sample.jfinal.jobhandler.CommandJobHandler; import com.xuxueli.executor.sample.jfinal.jobhandler.CommandJobHandler;
import com.xuxueli.executor.sample.jfinal.jobhandler.DemoJobHandler; import com.xuxueli.executor.sample.jfinal.jobhandler.DemoJobHandler;
@ -58,35 +59,27 @@ public class JFinalCoreConfig extends JFinalConfig {
// ---------------------- jfinal ---------------------- // ---------------------- jfinal ----------------------
public void configRoute(Routes route) {
route.add("/", IndexController.class);
}
@Override @Override
public void afterJFinalStart() { public void onStart() {
initXxlJobExecutor(); initXxlJobExecutor();
} }
@Override @Override
public void beforeJFinalStop() { public void onStop() {
destoryXxlJobExecutor(); destoryXxlJobExecutor();
} }
public void configConstant(Constants constants) { public void configConstant(Constants me) {
me.setDevMode(true);
}
public void configPlugin(Plugins plugins) {
} }
public void configInterceptor(Interceptors interceptors) { public void configRoute(Routes routes) {
routes.add("/", IndexController.class);
}
public void configHandler(Handlers handlers) {
} }
public void configEngine(Engine me) {}
public void configPlugin(Plugins me) {}
public void configInterceptor(Interceptors me) {}
public void configHandler(Handlers me) {}
} }

Loading…
Cancel
Save