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
127dcb04
authored
May 22, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Demo项目初始化
parent
c1363c75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
14 deletions
doc/XXL-JOB1.3.x用户手册.docx
xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/index.ftl
doc/XXL-JOB1.3.x用户手册.docx
View file @
127dcb04
No preview for this file type
xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/index.ftl
View file @
127dcb04
...
...
@@ -94,35 +94,22 @@
<textarea
id=
"demoCode"
style=
"display:none;"
>
package com.xxl.job.service.handler;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import com.xxl.job.client.handler.IJobHandler;
import com.xxl.job.client.handler.IJobHandler.JobHandleStatus;
import com.xxl.job.client.handler.annotation.JobHander;
public class DemoJobHandler extends IJobHandler {
private static transient Logger logger = LoggerFactory.getLogger(DemoJobHandler.class);
@Override
public JobHandleStatus handle(String... params) throws Exception {
for (int i = 0; i
<
5
;
i
++)
{
TimeUnit
.
SECONDS
.
sleep
(
1
);
logger
.
info
("
handler
run:
{}",
i
);
}
logger.info("XXL-JOB, Hello World.");
return JobHandleStatus.SUCCESS;
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
DemoJobHandler
.
class
.
getName
());
System
.
out
.
println
(
DemoJobHandler
.
class
);
}
}
</textarea>
<
@
netCommon
.
comAlert
/>
...
...
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