From 39a0205e89c5fa1abe2d955b59327a52669b0ea2 Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Fri, 22 Jul 2016 10:16:27 +0800 Subject: [PATCH] coding --- .../java/com/xxl/job/admin/core/thread/JobMonitorHelper.java | 2 +- .../com/xxl/job/executor/service/jobhandler/DemoJobHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java index 3e9cb479..3831bd18 100644 --- a/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java +++ b/xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java @@ -57,7 +57,7 @@ public class JobMonitorHelper { Set emailSet = new HashSet(Arrays.asList(info.getAlarmEmail().split(","))); for (String email: emailSet) { - String title = "《调度监控报警-调度平台平台XXL-JOB》"; + String title = "《调度监控报警-任务调度中心XXL-JOB》"; String content = MessageFormat.format("任务调度失败, 任务组:{0}, 任务描述:{1}.", info.getJobGroup(), info.getJobDesc()); MailUtil.sendMail(email, title, content, false, null); } diff --git a/xxl-job-executor-example/src/main/java/com/xxl/job/executor/service/jobhandler/DemoJobHandler.java b/xxl-job-executor-example/src/main/java/com/xxl/job/executor/service/jobhandler/DemoJobHandler.java index ff6d7e52..00a4dcc9 100644 --- a/xxl-job-executor-example/src/main/java/com/xxl/job/executor/service/jobhandler/DemoJobHandler.java +++ b/xxl-job-executor-example/src/main/java/com/xxl/job/executor/service/jobhandler/DemoJobHandler.java @@ -29,7 +29,7 @@ public class DemoJobHandler extends IJobHandler { public JobHandleStatus execute(String... params) throws Exception { logger.info("XXL-JOB, Hello World."); - for (int i = 0; i < 10; i++) { + for (int i = 0; i < 2; i++) { logger.info("beat at:{}", i); TimeUnit.SECONDS.sleep(2); }