Skip to content

Commit 8e4206f

Browse files
committed
optimize code
1 parent 762804f commit 8e4206f

File tree

45 files changed

+101
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+101
-81
lines changed

README.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ Scan the QR code to add WeChat friends, note `disjob`, and invite you to join th
182182
- [ ] Monitor real-time executing logs of tasks online
183183
- [ ] Alarm subscribe: Email, SMS, Voice, Lark, Ding Talk, WeChat
184184
- [ ] Visual monitoring BI dashboard
185-
- [ ] Support more savepoint implementation: File System, Hadoop, RocksDB, OSS
185+
- [ ] Support more Savepoint implementation: File System, Hadoop, RocksDB, OSS

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**`简体中文`** | [English](README.en.md)
44

5-
一款分布式的任务调度框架,除了具备常规的任务调度功能外,还提供:暂停/取消运行中的任务、恢复执行被暂停的任务、任务拆分、失败重试、广播任务、任务依赖、工作流任务(DAG)、管理器与执行器分离部署、Web管理后台等能力。
5+
一款分布式的任务调度框架,除了具备常规的任务调度功能外,还提供:暂停/取消运行中的任务、恢复执行被暂停的任务、任务分片、失败重试、广播任务、任务依赖、工作流任务(DAG)、管理器与执行器分离部署、Web管理后台等能力。
66

77
轻量级,简单易用,特别适合长任务的执行。有较好的伸缩性、扩展性、稳定性,历经生产检验。
88

@@ -53,7 +53,7 @@ disjob # 主项目①
5353
- 需要指定Job的分组(job-group),Job的任务只会派发给指定组的Worker执行
5454
- 提供任务分片的能力,重写拆分方法[JobHandler#split](disjob-core/src/main/java/cn/ponfee/disjob/core/handle/JobSplitter.java)即可拆分为多个任务,实现分布式任务及并行执行
5555
- 支持暂停和取消运行中的任务,已暂停的任务可恢复继续执行,执行失败的任务支持重试
56-
- 支持任务保存(savepoint)其执行状态,让手动或异常暂停的任务能从上一次的执行状态中恢复继续执行
56+
- 支持任务保存(Savepoint)其执行状态,让手动或异常暂停的任务能从上一次的执行状态中恢复继续执行
5757
- 任务在执行时若抛出[PauseTaskException](disjob-core/src/main/java/cn/ponfee/disjob/core/exception/PauseTaskException.java),会暂停对应实例下的全部任务(包括分布在不同worker机器中的任务)
5858
- 支持广播任务,广播任务会派发给job-group下的所有worker执行
5959
- 支持Job间的依赖,多个Job配置好依赖关系后便会按既定的依赖顺序依次执行
@@ -62,17 +62,17 @@ disjob # 主项目①
6262

6363
## Comparison
6464

65-
| **Feature** | **Quartz** | **Elastic-Job** | **Xxl-Job** | **Disjob** |
66-
| ------------ | ---------- |-----------------|-----------------|-------------------------------|
67-
| 时间类型 | Cron | Cron | Cron | Cron、指定时间、固定频率、固定延时 |
68-
| 任务编排 | 不支持 | 不支持 | 任务依赖 | DAG表达式、任务依赖 |
69-
| 任务分片 | 不支持 | 静态分片 | 广播任务 | 广播任务、动态分片 |
70-
| 停止与恢复 | 不支持 | 不支持 | 终止运行中的任务 | 暂停执行中的任务、恢复已暂停的任务 |
71-
| 保存执行快照 | 不支持 | 不支持 | 不支持 | 支持 |
72-
| 失败重试 | 不支持 | 失效转移 | 支持 | 支持 |
73-
| 后台管理 | 不支持 | 支持 | 支持 | 支持 |
74-
| 监控告警 | 不支持 | 邮件 | 邮件 | 暂不支持 |
75-
| 查看执行日志 | 不支持 | 支持 | 支持 | 暂不支持 |
65+
| **Feature** | **Quartz** | **Elastic-Job** | **Xxl-Job** | **Disjob** |
66+
| ------------ | ---------- |-----------------|----------------------|----------------------------------------|
67+
| **触发类型** | Cron | Cron | Cron、固定频率、父子依赖 | Cron、指定时间、固定频率、固定延时、父子依赖 |
68+
| **任务编排** | 不支持 | 不支持 | 不支持 | DAG表达式 |
69+
| **任务分片** | 不支持 | 静态分片 | 广播任务 | 广播任务、动态分片 |
70+
| **停止与恢复** | 不支持 | 不支持 | 终止运行中的任务 | 暂停执行中的任务、恢复已暂停的任务 |
71+
| **保存执行快照** | 不支持 | 不支持 | 不支持 | 支持 |
72+
| **失败重试** | 不支持 | 失效转移 | 支持 | 支持 |
73+
| **后台管理** | 不支持 | 支持 | 支持 | 支持 |
74+
| **监控告警** | 不支持 | 邮件 | 邮件 | 暂不支持 |
75+
| **查看执行日志** | 不支持 | 支持 | 支持 | 暂不支持 |
7676

7777
## [Download From Maven Central](https://central.sonatype.com/namespace/cn.ponfee)
7878

@@ -234,7 +234,7 @@ Worker接收到子任务后,会提交到框架自定义的线程池中执行
234234
"jobGroup": "default",
235235
"jobName": "prime-count-dag",
236236
"jobState": 1, // job状态:0-禁用;1-启用;
237-
"jobType": 2, // job类型:1-普通(Normal);2-工作流(DAG);
237+
"jobType": 2, // job类型:1-常规;2-工作流(DAG);
238238
"jobHandler": "cn.ponfee.disjob.test.handler.PrimeCountJobHandler -> cn.ponfee.disjob.test.handler.PrimeAccumulateJobHandler",
239239
"jobParam": "{\"m\":1,\"n\":10000000000,\"blockSize\":100000000,\"parallel\":10}",
240240
"triggerType": 2,

disjob-admin/ruoyi-admin/src/main/resources/templates/main.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h2 class="Box-title">
100100
<div data-target="readme-toc.content" class="Box-body px-5 pb-5">
101101
<article class="markdown-body entry-content container-lg" itemprop="text"><h1 tabindex="-1" id="user-content-----" dir="auto"><a class="heading-link" href="#----"><img src="https://raw.githubusercontent.com/dromara/disjob/master/docs/images/logo.png" width="125" alt="Logo" style="max-width: 100%;"> </a><a href="https://www.apache.org/licenses/LICENSE-2.0.html" rel="nofollow"><img src="https://camo.githubusercontent.com/20b3bc1c34ed71700bd0fc067de4d50e73468def345f89780f839e516cacf8b0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368652d2d322e302d677265656e2e737667" alt="License" data-canonical-src="https://img.shields.io/badge/license-Apache--2.0-green.svg" style="max-width: 100%;"></a> <a href="https://www.oracle.com/java/technologies/downloads/#java8" rel="nofollow"><img src="https://camo.githubusercontent.com/491e42a3617b89ac8f08a5b249f31d79bd50f7b268e547701840c82d0c9de759/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6a646b2d382b2d677265656e2e737667" alt="JDK" data-canonical-src="https://img.shields.io/badge/jdk-8+-green.svg" style="max-width: 100%;"></a> <a href="https://central.sonatype.com/namespace/cn.ponfee" rel="nofollow"><img src="https://camo.githubusercontent.com/106ddeb839f22f29dc11f799d543afa86751334a6b8ce737f70686616773949b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6176656e2d2d63656e7472616c2d322e302e332d6f72616e67652e7376673f7374796c653d706c6173746963266c6f676f3d6170616368656d6176656e" alt="Maven Central" data-canonical-src="https://img.shields.io/badge/maven--central-2.0.4-orange.svg?style=plastic&amp;logo=apachemaven" style="max-width: 100%;"></a> <a href="https://github.com/dromara/disjob/actions"><img src="https://github.com/dromara/disjob/workflows/build/badge.svg" alt="Build status" style="max-width: 100%;"></a><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></h1>
102102
<p dir="auto"><strong><code>简体中文</code></strong> | <a href="https://github.com/dromara/disjob/blob/master/README.en.md">English</a></p>
103-
<p dir="auto">一款分布式的任务调度框架,除了具备常规的任务调度功能外,还提供:暂停/取消运行中的任务、恢复执行被暂停的任务、任务拆分、失败重试、广播任务、任务依赖、工作流任务(DAG)、管理器与执行器分离部署、Web管理后台等能力。</p>
103+
<p dir="auto">一款分布式的任务调度框架,除了具备常规的任务调度功能外,还提供:暂停/取消运行中的任务、恢复执行被暂停的任务、任务分片、失败重试、广播任务、任务依赖、工作流任务(DAG)、管理器与执行器分离部署、Web管理后台等能力。</p>
104104
<p dir="auto">轻量级,简单易用,特别适合长任务的执行。有较好的伸缩性、扩展性、稳定性,历经生产检验。</p>
105105
<h2 tabindex="-1" id="user-content-architecture" dir="auto"><a class="heading-link" href="#architecture">Architecture<svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></h2>
106106
<ul dir="auto">
@@ -365,7 +365,7 @@ <h2 tabindex="-1" id="user-content-example" dir="auto"><a class="heading-link" h
365365
&quot;jobGroup&quot;: &quot;default&quot;,
366366
&quot;jobName&quot;: &quot;prime-count-dag&quot;,
367367
&quot;jobState&quot;: 1, // job状态:0-禁用;1-启用;
368-
&quot;jobType&quot;: 2, // job类型:1-普通(Normal);2-工作流(DAG);
368+
&quot;jobType&quot;: 2, // job类型:1-常规;2-工作流(DAG);
369369
&quot;jobHandler&quot;: &quot;cn.ponfee.disjob.test.handler.PrimeCountJobHandler -&gt; cn.ponfee.disjob.test.handler.PrimeAccumulateJobHandler&quot;,
370370
&quot;jobParam&quot;: &quot;{\&quot;m\&quot;:1,\&quot;n\&quot;:10000000000,\&quot;blockSize\&quot;:100000000,\&quot;parallel\&quot;:10}&quot;,
371371
&quot;triggerType&quot;: 2,
@@ -374,7 +374,7 @@ <h2 tabindex="-1" id="user-content-example" dir="auto"><a class="heading-link" h
374374
<span class="pl-s">"jobGroup"</span>: <span class="pl-s">"default"</span><span class="pl-kos">,</span>
375375
<span class="pl-s">"jobName"</span>: <span class="pl-s">"prime-count-dag"</span><span class="pl-kos">,</span>
376376
<span class="pl-s">"jobState"</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c">// job状态:0-禁用;1-启用;</span>
377-
<span class="pl-s">"jobType"</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c">// job类型:1-普通(Normal);2-工作流(DAG);</span>
377+
<span class="pl-s">"jobType"</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c">// job类型:1-常规;2-工作流(DAG);</span>
378378
<span class="pl-s">"jobHandler"</span>: <span class="pl-s">"cn.ponfee.disjob.test.handler.PrimeCountJobHandler -&gt; cn.ponfee.disjob.test.handler.PrimeAccumulateJobHandler"</span><span class="pl-kos">,</span>
379379
<span class="pl-s">"jobParam"</span>: <span class="pl-s">"{\"m\":1,\"n\":10000000000,\"blockSize\":100000000,\"parallel\":10}"</span><span class="pl-kos">,</span>
380380
<span class="pl-s">"triggerType"</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span>

disjob-admin/ruoyi-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ServletUtils
2424
/**
2525
* 定义移动端请求的所有可能类型
2626
*/
27-
private final static String[] agent = { "Android", "iPhone", "iPod", "iPad", "Windows Phone", "MQQBrowser" };
27+
private static final String[] agent = { "Android", "iPhone", "iPod", "iPad", "Windows Phone", "MQQBrowser" };
2828

2929
/**
3030
* 获取String参数

disjob-admin/ruoyi-disjob/src/main/java/cn/ponfee/disjob/admin/controller/DisjobInstanceController.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public class DisjobInstanceController extends BaseController {
4141
private static final String PERMISSION_VIEW = "disjob:instance:view";
4242
private static final String PERMISSION_QUERY = "disjob:instance:query";
4343
private static final String PERMISSION_OPERATE = "disjob:instance:operate";
44-
private final static int WAIT_SLEEP_ROUND = 9;
45-
private final static long[] WAIT_SLEEP_MILLIS = {2500, 500};
44+
private static final int WAIT_SLEEP_ROUND = 9;
45+
private static final long[] WAIT_SLEEP_MILLIS = {2500, 500};
4646

4747
private final SupervisorOpenRpcService supervisorOpenRpcService;
4848

disjob-admin/ruoyi-disjob/src/main/java/cn/ponfee/disjob/admin/domain/SchedJobExport.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class SchedJobExport {
4141
private String jobName;
4242

4343
/**
44-
* Job类型:1-普通(Normal);2-工作流(Workflow);
44+
* Job类型:1-常规;2-工作流(Workflow);
4545
*/
4646
@Excel(name = "Job类型")
4747
private Integer jobType;
@@ -103,9 +103,9 @@ public class SchedJobExport {
103103
private Integer triggerType;
104104

105105
/**
106-
* 触发器配置(对应trigger_type):1-Cron表达式;2-时间格式(2000-01-01 00:00:00);3-{"period":"DAILY","start":"2018-12-06 00:00:00","step":1};4-周期秒数;5-延时秒数;6-父任务job_id(多个逗号分隔);
106+
* 触发器值(对应trigger_type):1-Cron表达式;2-时间格式(2000-01-01 00:00:00);3-{"period":"DAILY","start":"2018-12-06 00:00:00","step":1};4-周期秒数;5-延时秒数;6-父任务job_id(多个逗号分隔);
107107
*/
108-
@Excel(name = "触发器配置")
108+
@Excel(name = "触发器值")
109109
private String triggerValue;
110110

111111
/**

disjob-admin/ruoyi-disjob/src/main/resources/templates/disjob/job/detail.html

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696
<p class="form-control-static">[( ${@disjobService.desc('RouteStrategy', job.routeStrategy)} )]</p>
9797
</div>
9898
</div>
99+
<div class="form-group">
100+
<label class="col-sm-3 control-label">备注:</label>
101+
<div class="col-sm-9">[(*{remark})]</div>
102+
</div>
99103
</form>
100104
</div>
101105

disjob-admin/ruoyi-disjob/src/main/resources/templates/disjob/job/job.html

+1-8
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
},
112112
{
113113
field: 'triggerValue',
114-
title: '触发器配置',
114+
title: '触发器值',
115115
formatter: function (value, row, index) {
116116
return $.table.tooltip(value, 19, "open");
117117
}
@@ -140,13 +140,6 @@
140140
return $.common.dateFormat(parseInt(value), 'yyyy-MM-dd HH:mm:ss');
141141
}
142142
},
143-
{
144-
field: 'remark',
145-
title: '备注',
146-
formatter: function (value, row, index) {
147-
return $.table.tooltip(value, 30, "open");
148-
}
149-
},
150143
{
151144
field: 'updatedBy',
152145
title: '更新人'

disjob-admin/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/web/filter/kickout/KickoutSessionFilter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
public class KickoutSessionFilter extends AccessControlFilter
3333
{
34-
private final static ObjectMapper objectMapper = new ObjectMapper();
34+
private static final ObjectMapper objectMapper = new ObjectMapper();
3535

3636
/**
3737
* 同一个用户最大会话数

disjob-common/src/main/java/cn/ponfee/disjob/common/base/TimingWheel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
*/
9292
public abstract class TimingWheel<T extends TimingWheel.Timing<T>> implements java.io.Serializable {
9393
private static final long serialVersionUID = 4500377208898808026L;
94-
private final static Logger LOG = LoggerFactory.getLogger(TimingWheel.class);
94+
private static final Logger LOG = LoggerFactory.getLogger(TimingWheel.class);
9595

9696
private static final int PROCESS_SLOTS_SIZE = 2;
9797

disjob-common/src/main/java/cn/ponfee/disjob/common/concurrent/AsyncDelayedExecutor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*/
3939
public final class AsyncDelayedExecutor<E> extends Thread {
4040

41-
private final static Logger LOG = LoggerFactory.getLogger(AsyncDelayedExecutor.class);
41+
private static final Logger LOG = LoggerFactory.getLogger(AsyncDelayedExecutor.class);
4242

4343
private final Consumer<E> processor; // 数据处理器
4444
private final ThreadPoolExecutor asyncExecutor; // 异步执行器

disjob-common/src/main/java/cn/ponfee/disjob/common/concurrent/LoggedUncaughtExceptionHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @author Ponfee
1818
*/
1919
public final class LoggedUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
20-
private final static Logger LOG = LoggerFactory.getLogger(LoggedUncaughtExceptionHandler.class);
20+
private static final Logger LOG = LoggerFactory.getLogger(LoggedUncaughtExceptionHandler.class);
2121

2222
public static final LoggedUncaughtExceptionHandler INSTANCE = new LoggedUncaughtExceptionHandler();
2323

disjob-common/src/main/java/cn/ponfee/disjob/common/concurrent/LoopThread.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
public class LoopThread extends Thread {
2323

24-
private final static Logger LOG = LoggerFactory.getLogger(LoopThread.class);
24+
private static final Logger LOG = LoggerFactory.getLogger(LoopThread.class);
2525

2626
private static final int NEW = 0;
2727
private static final int RUNNING = 1;

disjob-common/src/main/java/cn/ponfee/disjob/common/concurrent/ThreadPoolExecutors.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
public final class ThreadPoolExecutors {
2929

30-
private final static Logger LOG = LoggerFactory.getLogger(ThreadPoolExecutors.class);
30+
private static final Logger LOG = LoggerFactory.getLogger(ThreadPoolExecutors.class);
3131

3232
/**
3333
* max #workers - 1

disjob-common/src/main/java/cn/ponfee/disjob/common/util/ClassUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
*/
4040
public final class ClassUtils {
4141

42-
private final static Logger LOG = LoggerFactory.getLogger(ClassUtils.class);
42+
private static final Logger LOG = LoggerFactory.getLogger(ClassUtils.class);
4343

4444
public static final Pattern QUALIFIED_CLASS_NAME_PATTERN = Pattern.compile("^([a-zA-Z_$][a-zA-Z\\d_$]*\\.)*[a-zA-Z_$][a-zA-Z\\d_$]*$");
4545

disjob-core/src/main/java/cn/ponfee/disjob/core/enums/JobType.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
public enum JobType implements IntValueEnum<JobType> {
2424

2525
/**
26-
* 普通
26+
* 常规
2727
*/
28-
NORMAL(1, "普通(Normal)"),
28+
GENERAL(1, "常规"),
2929

3030
/**
3131
* 工作流(DAG)

disjob-core/src/main/java/cn/ponfee/disjob/core/handle/impl/CommandJobHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* @author Ponfee
4949
*/
5050
public class CommandJobHandler extends JobHandler {
51-
private final static Logger LOG = LoggerFactory.getLogger(CommandJobHandler.class);
51+
private static final Logger LOG = LoggerFactory.getLogger(CommandJobHandler.class);
5252

5353
private Charset charset;
5454
private Long pid;

disjob-core/src/main/java/cn/ponfee/disjob/core/handle/impl/HttpJobHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@
5050
* @author Ponfee
5151
*/
5252
public class HttpJobHandler extends JobHandler {
53-
private final static Logger LOG = LoggerFactory.getLogger(HttpJobHandler.class);
53+
private static final Logger LOG = LoggerFactory.getLogger(HttpJobHandler.class);
5454

5555
private static final int DEFAULT_CONNECT_TIMEOUT = 2000;
5656
private static final int DEFAULT_READ_TIMEOUT = 5000;
5757

58-
private final static RestTemplate REST_TEMPLATE = RestTemplateUtils.buildRestTemplate(
58+
private static final RestTemplate REST_TEMPLATE = RestTemplateUtils.buildRestTemplate(
5959
DEFAULT_CONNECT_TIMEOUT,
6060
DEFAULT_READ_TIMEOUT,
6161
StandardCharsets.UTF_8,

disjob-core/src/main/java/cn/ponfee/disjob/core/handle/impl/ScriptJobHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
* @author Ponfee
5151
*/
5252
public class ScriptJobHandler extends JobHandler {
53-
private final static Logger LOG = LoggerFactory.getLogger(ScriptJobHandler.class);
53+
private static final Logger LOG = LoggerFactory.getLogger(ScriptJobHandler.class);
5454

5555
private static final String[] DOWNLOAD_PROTOCOL = {"http://", "https://", "ftp://"};
5656
private static final String WORKER_SCRIPT_DIR = SystemUtils.USER_HOME + "/disjob/worker/scripts/";

0 commit comments

Comments
 (0)