Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
粉色的八爪鱼
xxl-job
提交
71a03377
X
xxl-job
项目概览
粉色的八爪鱼
/
xxl-job
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
xxl-job
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
71a03377
编写于
5月 22, 2016
作者:
X
xueli.xue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
命名更新
上级
8e31f7fb
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
27 addition
and
27 deletion
+27
-27
doc/XXL-JOB1.3.x用户手册_20160522_1547.docx
doc/XXL-JOB1.3.x用户手册_20160522_1547.docx
+0
-0
doc/db/tables_mysql(备份,请忽略).sql
doc/db/tables_mysql(备份,请忽略).sql
+0
-0
doc/~$L-JOB1.3.x用户手册_20160522_1547.docx
doc/~$L-JOB1.3.x用户手册_20160522_1547.docx
+0
-0
xxl-job-admin/src/main/java/com/xxl/job/controller/JobInfoController.java
...c/main/java/com/xxl/job/controller/JobInfoController.java
+4
-4
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl
...-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl
+8
-8
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
+9
-9
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
+2
-2
xxl-job-client-demo/src/main/java/com/xxl/job/service/handler/DemoJobHandler.java
...main/java/com/xxl/job/service/handler/DemoJobHandler.java
+1
-1
xxl-job-client-demo/src/main/resources/applicationcontext-xxl-job.xml
...nt-demo/src/main/resources/applicationcontext-xxl-job.xml
+1
-1
xxl-job-client/src/main/java/com/xxl/job/client/handler/annotation/JobHander.java
...java/com/xxl/job/client/handler/annotation/JobHander.java
+1
-1
xxl-job-client/src/main/java/com/xxl/job/client/netcom/jetty/XxlJobJettyServer.java
...va/com/xxl/job/client/netcom/jetty/XxlJobJettyServer.java
+1
-1
未找到文件。
doc/XXL-JOB1.3.x用户手册_20160522_1547.docx
浏览文件 @
71a03377
无法预览此类型文件
doc/db/tables_mysql.sql
→
doc/db/tables_mysql
(备份,请忽略)
.sql
浏览文件 @
71a03377
文件已移动
doc/~$L-JOB1.3.x用户手册_20160522_1547.docx
0 → 100644
浏览文件 @
71a03377
文件已添加
xxl-job-admin/src/main/java/com/xxl/job/controller/JobInfoController.java
浏览文件 @
71a03377
...
...
@@ -93,10 +93,10 @@ public class JobInfoController {
return
new
ReturnT
<
String
>(
500
,
"请输入“任务描述”"
);
}
if
(
StringUtils
.
isBlank
(
handler_address
))
{
return
new
ReturnT
<
String
>(
500
,
"请输入“
机
器地址”"
);
return
new
ReturnT
<
String
>(
500
,
"请输入“
执行
器地址”"
);
}
if
(
glueSwitch
==
0
&&
StringUtils
.
isBlank
(
handler_name
))
{
return
new
ReturnT
<
String
>(
500
,
"请输入“
执行器
”"
);
return
new
ReturnT
<
String
>(
500
,
"请输入“
jobHandler
”"
);
}
if
(
StringUtils
.
isBlank
(
author
))
{
return
new
ReturnT
<
String
>(
500
,
"请输入“负责人”"
);
...
...
@@ -174,10 +174,10 @@ public class JobInfoController {
return
new
ReturnT
<
String
>(
500
,
"请输入“任务描述”"
);
}
if
(
StringUtils
.
isBlank
(
handler_address
))
{
return
new
ReturnT
<
String
>(
500
,
"请输入“
机
器地址”"
);
return
new
ReturnT
<
String
>(
500
,
"请输入“
执行
器地址”"
);
}
if
(
glueSwitch
==
0
&&
StringUtils
.
isBlank
(
handler_name
))
{
return
new
ReturnT
<
String
>(
500
,
"请输入“
执行器
”"
);
return
new
ReturnT
<
String
>(
500
,
"请输入“
jobHandler
”"
);
}
if
(
StringUtils
.
isBlank
(
author
))
{
return
new
ReturnT
<
String
>(
500
,
"请输入“负责人”"
);
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl
浏览文件 @
71a03377
...
...
@@ -125,10 +125,10 @@
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"jobDesc"
placeholder=
"请输入“描述”"
maxlength=
"200"
></div>
</div>
<div
class=
"form-group"
>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
机
器地址
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"handler_address"
placeholder=
"请输入“
远程-机
器地址”"
maxlength=
"200"
></div>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
执行器
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"handler_name"
placeholder=
"请输入“
远程-执行器
”"
maxlength=
"200"
></div>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
执行
器地址
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"handler_address"
placeholder=
"请输入“
执行
器地址”"
maxlength=
"200"
></div>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
jobHandler
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"handler_name"
placeholder=
"请输入“
jobHandler
”"
maxlength=
"200"
></div>
</div>
<div
class=
"form-group"
>
<label
for=
"firstname"
class=
"col-sm-2 control-label"
>
执行参数
<font
color=
"black"
>
*
</font></label>
...
...
@@ -206,10 +206,10 @@ public class DemoJobHandler extends IJobHandler {
</div>
<div
class=
"form-group"
>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
机
器地址
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"handler_address"
placeholder=
"请输入“
远程-机
器地址”"
maxlength=
"200"
></div>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
执行器
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"handler_name"
placeholder=
"请输入“
远程-执行器
”"
maxlength=
"200"
></div>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
执行
器地址
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"handler_address"
placeholder=
"请输入“
执行
器地址”"
maxlength=
"200"
></div>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
jobHandler
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"handler_name"
placeholder=
"请输入“
jobHandler
”"
maxlength=
"200"
></div>
</div>
<div
class=
"form-group"
>
<label
for=
"firstname"
class=
"col-sm-2 control-label"
>
执行参数
<font
color=
"black"
>
*
</font></label>
...
...
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
浏览文件 @
71a03377
...
...
@@ -40,7 +40,7 @@ $(function() {
var
_jobData
=
eval
(
'
(
'
+
data
+
'
)
'
);
// row.jobData
var
html
=
"
<p title='
"
+
data
+
"
'>执行器:
"
+
_jobData
.
handler_name
+
"
<br>执行参数:
"
+
_jobData
.
handler_params
+
"
<br>执行
机器
:
"
+
_jobData
.
handler_address
+
"
</p>
"
;
"
<br>执行
器地址
:
"
+
_jobData
.
handler_address
+
"
</p>
"
;
return
html
;
}
},
...
...
@@ -272,12 +272,12 @@ $(function() {
maxlength
:
"
“任务描述”长度不应超过200位
"
},
handler_address
:
{
required
:
"
请输入“
机
器地址”.
"
,
maxlength
:
"
“
机
器地址”长度不应超过200位
"
required
:
"
请输入“
执行
器地址”.
"
,
maxlength
:
"
“
执行
器地址”长度不应超过200位
"
},
handler_name
:
{
required
:
"
请输入“
执行器
”.
"
,
maxlength
:
"
“
执行器
”长度不应超过200位
"
required
:
"
请输入“
jobHandler
”.
"
,
maxlength
:
"
“
jobHandler
”长度不应超过200位
"
},
author
:
{
required
:
"
请输入“负责人”.
"
,
...
...
@@ -424,12 +424,12 @@ $(function() {
maxlength
:
"
“任务描述”长度不应超过200位
"
},
handler_address
:
{
required
:
"
请输入“
机
器地址”.
"
,
maxlength
:
"
“
机
器地址”长度不应超过200位
"
required
:
"
请输入“
执行
器地址”.
"
,
maxlength
:
"
“
执行
器地址”长度不应超过200位
"
},
handler_name
:
{
required
:
"
请输入“
执行器
”.
"
,
maxlength
:
"
“
执行器
”长度不应超过200位
"
required
:
"
请输入“
jobHandler
”.
"
,
maxlength
:
"
“
jobHandler
”长度不应超过200位
"
},
author
:
{
required
:
"
请输入“负责人”.
"
,
...
...
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
浏览文件 @
71a03377
...
...
@@ -69,9 +69,9 @@ $(function() {
"
visible
"
:
true
,
"
render
"
:
function
(
data
,
type
,
row
)
{
var
_jobData
=
eval
(
'
(
'
+
data
+
'
)
'
);
// row.jobData
var
html
=
"
<p title='
"
+
data
+
"
'>
执行器
:
"
+
_jobData
.
handler_name
+
var
html
=
"
<p title='
"
+
data
+
"
'>
JobHandler
:
"
+
_jobData
.
handler_name
+
"
<br>执行参数:
"
+
_jobData
.
handler_params
+
"
<br>执行
机器
:
"
+
_jobData
.
handler_address
+
"
</p>
"
;
"
<br>执行
器地址
:
"
+
_jobData
.
handler_address
+
"
</p>
"
;
return
data
?
'
<a class="logMsg" href="javascript:;" >查看<span style="display:none;">
'
+
html
+
'
</span></a>
'
:
"
无
"
;
}
...
...
xxl-job-client-demo/src/main/java/com/xxl/job/service/handler/DemoJobHandler.java
浏览文件 @
71a03377
...
...
@@ -11,7 +11,7 @@ import com.xxl.job.client.handler.annotation.JobHander;
* demo job handler
* @author xuxueli 2015-12-19 19:43:36
*/
@JobHander
(
jobN
ame
=
"demoJobHandler"
)
@JobHander
(
n
ame
=
"demoJobHandler"
)
@Service
public
class
DemoJobHandler
extends
IJobHandler
{
private
static
transient
Logger
logger
=
LoggerFactory
.
getLogger
(
DemoJobHandler
.
class
);
...
...
xxl-job-client-demo/src/main/resources/applicationcontext-xxl-job.xml
浏览文件 @
71a03377
...
...
@@ -11,7 +11,7 @@
<context:component-scan
base-package=
"com.xxl.job.service"
/>
<!--
Jetty任务
执行器 -->
<!-- 执行器 -->
<bean
id=
"xxlJobJettyServer"
class=
"com.xxl.job.client.netcom.jetty.XxlJobJettyServer"
init-method=
"start"
>
<property
name=
"port"
value=
"9999"
/>
</bean>
...
...
xxl-job-client/src/main/java/com/xxl/job/client/handler/annotation/JobHander.java
浏览文件 @
71a03377
...
...
@@ -13,6 +13,6 @@ import java.lang.annotation.Target;
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
JobHander
{
String
jobN
ame
();
String
n
ame
();
}
xxl-job-client/src/main/java/com/xxl/job/client/netcom/jetty/XxlJobJettyServer.java
浏览文件 @
71a03377
...
...
@@ -75,7 +75,7 @@ public class XxlJobJettyServer implements ApplicationContextAware {
Map
<
String
,
Object
>
serviceBeanMap
=
XxlJobJettyServer
.
applicationContext
.
getBeansWithAnnotation
(
JobHander
.
class
);
if
(
serviceBeanMap
!=
null
&&
serviceBeanMap
.
size
()>
0
)
{
for
(
Object
serviceBean
:
serviceBeanMap
.
values
())
{
String
jobName
=
serviceBean
.
getClass
().
getAnnotation
(
JobHander
.
class
).
jobN
ame
();
String
jobName
=
serviceBean
.
getClass
().
getAnnotation
(
JobHander
.
class
).
n
ame
();
if
(
jobName
!=
null
&&
jobName
.
trim
().
length
()>
0
&&
serviceBean
instanceof
IJobHandler
)
{
IJobHandler
handler
=
(
IJobHandler
)
serviceBean
;
HandlerRepository
.
regist
(
jobName
,
handler
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录