From 802e3d3cced272261a2c8750857de7c9a37a0935 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Wed, 8 May 2019 22:12:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=9D=83=E9=99=90=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=EF=BC=9A=E4=BB=85=E7=AE=A1=E7=90=86=E5=91=98=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=9F=A5=E8=AF=A2=E5=85=A8=E9=83=A8=EF=BC=9B=E6=99=AE?= =?UTF-8?q?=E9=80=9A=E7=94=A8=E6=88=B7=E4=BB=85=E6=94=AF=E6=8C=81=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9C=89=E6=9D=83=E9=99=90=E7=9A=84=20jobGroup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/XXL-JOB-English-Documentation.md | 2 +- doc/XXL-JOB官方文档.md | 2 +- .../com/xxl/job/admin/core/thread/JobFailMonitorHelper.java | 2 +- .../src/main/java/com/xxl/job/core/handler/IJobHandler.java | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/XXL-JOB-English-Documentation.md b/doc/XXL-JOB-English-Documentation.md index e34db775..42a8a654 100644 --- a/doc/XXL-JOB-English-Documentation.md +++ b/doc/XXL-JOB-English-Documentation.md @@ -565,7 +565,7 @@ It is implemented by interrupt execute thread, it will trigger InterruptedExcept So if you want stop the running task ,the JobHandler need to handle InterruptedException separately by throw this exception.the right logic is as shown below: ``` try{ - // TODO + // do something } catch (Exception e) { if (e instanceof InterruptedException) { throw e; diff --git a/doc/XXL-JOB官方文档.md b/doc/XXL-JOB官方文档.md index e9826983..5b544d7d 100644 --- a/doc/XXL-JOB官方文档.md +++ b/doc/XXL-JOB官方文档.md @@ -730,7 +730,7 @@ public XxlJobSpringExecutor xxlJobExecutor() { 因此, 如果遇到上述任务终止不可用的情况, 需要在JobHandler中应该针对 "InterruptedException" 异常进行特殊处理 (向上抛出) , 正确逻辑如下: ``` try{ - // TODO + // do something } catch (Exception e) { if (e instanceof InterruptedException) { throw e; diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobFailMonitorHelper.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobFailMonitorHelper.java index c0a4f243..7e1ac115 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobFailMonitorHelper.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobFailMonitorHelper.java @@ -192,7 +192,7 @@ public class JobFailMonitorHelper { } } - // TODO, custom alarm strategy, such as sms + // do something, custom alarm strategy, such as sms return alarmResult; diff --git a/xxl-job-core/src/main/java/com/xxl/job/core/handler/IJobHandler.java b/xxl-job-core/src/main/java/com/xxl/job/core/handler/IJobHandler.java index 4347637a..e8e7dc2e 100644 --- a/xxl-job-core/src/main/java/com/xxl/job/core/handler/IJobHandler.java +++ b/xxl-job-core/src/main/java/com/xxl/job/core/handler/IJobHandler.java @@ -32,7 +32,7 @@ public abstract class IJobHandler { * init handler, invoked when JobThread init */ public void init() { - // TODO + // do something } @@ -40,7 +40,7 @@ public abstract class IJobHandler { * destroy handler, invoked when JobThread destroy */ public void destroy() { - // TODO + // do something }