Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
39a0205e
authored
Jul 22, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
coding
parent
628d4219
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java
xxl-job-executor-example/src/main/java/com/xxl/job/executor/service/jobhandler/DemoJobHandler.java
xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobMonitorHelper.java
View file @
39a0205e
...
@@ -57,7 +57,7 @@ public class JobMonitorHelper {
...
@@ -57,7 +57,7 @@ public class JobMonitorHelper {
Set
<
String
>
emailSet
=
new
HashSet
<
String
>(
Arrays
.
asList
(
info
.
getAlarmEmail
().
split
(
","
)));
Set
<
String
>
emailSet
=
new
HashSet
<
String
>(
Arrays
.
asList
(
info
.
getAlarmEmail
().
split
(
","
)));
for
(
String
email:
emailSet
)
{
for
(
String
email:
emailSet
)
{
String
title
=
"《调度监控报警-
调度平台平台
XXL-JOB》"
;
String
title
=
"《调度监控报警-
任务调度中心
XXL-JOB》"
;
String
content
=
MessageFormat
.
format
(
"任务调度失败, 任务组:{0}, 任务描述:{1}."
,
info
.
getJobGroup
(),
info
.
getJobDesc
());
String
content
=
MessageFormat
.
format
(
"任务调度失败, 任务组:{0}, 任务描述:{1}."
,
info
.
getJobGroup
(),
info
.
getJobDesc
());
MailUtil
.
sendMail
(
email
,
title
,
content
,
false
,
null
);
MailUtil
.
sendMail
(
email
,
title
,
content
,
false
,
null
);
}
}
...
...
xxl-job-executor-example/src/main/java/com/xxl/job/executor/service/jobhandler/DemoJobHandler.java
View file @
39a0205e
...
@@ -29,7 +29,7 @@ public class DemoJobHandler extends IJobHandler {
...
@@ -29,7 +29,7 @@ public class DemoJobHandler extends IJobHandler {
public
JobHandleStatus
execute
(
String
...
params
)
throws
Exception
{
public
JobHandleStatus
execute
(
String
...
params
)
throws
Exception
{
logger
.
info
(
"XXL-JOB, Hello World."
);
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
);
logger
.
info
(
"beat at:{}"
,
i
);
TimeUnit
.
SECONDS
.
sleep
(
2
);
TimeUnit
.
SECONDS
.
sleep
(
2
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment