Skip to content

Commit e6cd0c4

Browse files
committed
升级ApiBoot 2.0.2.RELEASE
1 parent 622ecd6 commit e6cd0c4

File tree

5 files changed

+7
-19
lines changed

5 files changed

+7
-19
lines changed

api-boot-project/api-boot-plugins/api-boot-plugin-quartz/src/main/java/org/minbox/framework/api/boot/plugin/quartz/ApiBootQuartzService.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,55 +33,48 @@ public interface ApiBootQuartzService {
3333
*
3434
* @param jobWrapper 定时任务封装对象
3535
* @return Job Key
36-
* @throws SchedulerException 调度器异常
3736
*/
3837
String newJob(ApiBootJobWrapper jobWrapper);
3938

4039
/**
4140
* 删除一个任务
4241
*
4342
* @param jobKey Job Key
44-
* @throws SchedulerException 调度器异常
4543
*/
4644
void deleteJob(String jobKey);
4745

4846
/**
4947
* 删除一系列任务
5048
*
5149
* @param jobKeys Job Key Array
52-
* @throws SchedulerException 调度器异常
5350
*/
5451
void deleteJobs(String... jobKeys);
5552

5653
/**
5754
* 删除集合内的所有任务
5855
*
5956
* @param jobKeys Job Key Collection
60-
* @throws SchedulerException 调度器异常
6157
*/
6258
void deleteJobs(Collection<String> jobKeys);
6359

6460
/**
6561
* 暂停一个任务
6662
*
6763
* @param jobKey Job Key
68-
* @throws SchedulerException 调度器异常
6964
*/
7065
void pauseJob(String jobKey);
7166

7267
/**
7368
* 暂停传递的所有任务
7469
*
7570
* @param jobKeys Job Key Array
76-
* @throws SchedulerException 调度器异常
7771
*/
7872
void pauseJobs(String... jobKeys);
7973

8074
/**
8175
* 暂停集合内的所有任务
8276
*
8377
* @param jobKeys Job Key Collection
84-
* @throws SchedulerException 调度器异常
8578
*/
8679
void pauseJobs(Collection<String> jobKeys);
8780

@@ -111,7 +104,6 @@ public interface ApiBootQuartzService {
111104
*
112105
* @param jobKey Job Key
113106
* @param cron Job Cron Expression
114-
* @throws SchedulerException 调度器异常
115107
*/
116108
void updateJobCron(String jobKey, String cron);
117109

@@ -120,21 +112,20 @@ public interface ApiBootQuartzService {
120112
*
121113
* @param jobKey Job Key
122114
* @param jobStartTime Job New Start Time
123-
* @throws SchedulerException 调度器异常
124115
*/
125116
void updateJobStartTime(String jobKey, Date jobStartTime);
126117

127118
/**
128119
* 启动所有定时任务
129120
*
130-
* @throws SchedulerException
121+
* @throws SchedulerException 调度器异常
131122
*/
132123
void startAllJobs() throws SchedulerException;
133124

134125
/**
135126
* 关闭所有定时任务
136127
*
137-
* @throws SchedulerException
128+
* @throws SchedulerException 调度器异常
138129
*/
139130
void shutdownAllJobs() throws SchedulerException;
140131
}

api-boot-project/api-boot-plugins/api-boot-plugin-quartz/src/main/java/org/minbox/framework/api/boot/plugin/quartz/support/ApiBootQuartzServiceDefaultSupport.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public Scheduler getScheduler() throws SchedulerException {
6464
*
6565
* @param jobWrapper 定时任务封装对象
6666
* @return Job Key
67-
* @throws SchedulerException 调度器异常
6867
*/
6968
@Override
7069
public String newJob(ApiBootJobWrapper jobWrapper) {
@@ -98,7 +97,6 @@ else if (jobWrapper instanceof ApiBootOnceJobWrapper) {
9897
* 删除任务
9998
*
10099
* @param jobKey Job Key
101-
* @throws SchedulerException 调度器异常
102100
*/
103101
@Override
104102
public void deleteJob(String jobKey) {
@@ -143,7 +141,6 @@ public void deleteJobs(Collection<String> jobKeys) {
143141
* 暂停定时任务
144142
*
145143
* @param jobKey Job Key
146-
* @throws SchedulerException 调度器异常
147144
*/
148145
@Override
149146
public void pauseJob(String jobKey) {
@@ -221,7 +218,6 @@ public void resumeJobs(Collection<String> jobKeys) {
221218
*
222219
* @param jobKey Job Key
223220
* @param cron Job Cron Expression
224-
* @throws SchedulerException 调度器异常
225221
*/
226222
@Override
227223
public void updateJobCron(String jobKey, String cron) {
@@ -243,7 +239,6 @@ public void updateJobCron(String jobKey, String cron) {
243239
*
244240
* @param jobKey Job Key
245241
* @param jobStartTime Job New Start Time
246-
* @throws SchedulerException 调度器信息
247242
*/
248243
@Override
249244
public void updateJobStartTime(String jobKey, Date jobStartTime) {

api-boot-project/api-boot-plugins/api-boot-plugin-quartz/src/main/java/org/minbox/framework/api/boot/plugin/quartz/wrapper/ApiBootJobParamWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class ApiBootJobParamWrapper {
2626
/**
2727
* 实例化参数对象
2828
*
29-
* @return
29+
* @return ApiBootJobParamWrapper Instance
3030
*/
3131
public static ApiBootJobParamWrapper wrapper() {
3232
return new ApiBootJobParamWrapper();

api-boot-project/api-boot-plugins/api-boot-plugin-quartz/src/main/java/org/minbox/framework/api/boot/plugin/quartz/wrapper/support/ApiBootLoopJobWrapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public class ApiBootLoopJobWrapper extends ApiBootJobWrapper {
4444
* @param loopIntervalTime 循环间隔次数
4545
* @param repeatTimes 重复次数
4646
* @param startAtTime 开始时间
47+
* @param param 参数
48+
* @param jobClass 任务执行类
4749
*/
4850
@Builder(builderMethodName = "Context", buildMethodName = "wrapper")
4951
public ApiBootLoopJobWrapper(String jobKey, Class<? extends QuartzJobBean> jobClass, int repeatTimes, int loopIntervalTime, Date startAtTime, ApiBootJobParamWrapper param) {

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
<!-- <parent>
5+
<parent>
66
<groupId>org.minbox.framework</groupId>
77
<artifactId>oss-parent</artifactId>
88
<version>0.1.0.RELEASE</version>
99
<relativePath>../oss-parent</relativePath>
10-
</parent>-->
10+
</parent>
1111
<packaging>pom</packaging>
1212
<modules>
1313
<module>api-boot-project</module>

0 commit comments

Comments
 (0)