Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
xxl-job
提交
ff5a5bcd
X
xxl-job
项目概览
OpenDocCN
/
xxl-job
通知
9
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,体验更适合开发者的 AI 搜索 >>
提交
ff5a5bcd
编写于
5月 08, 2017
作者:
X
xueli.xue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
任务运行模式属性改为只读;
上级
3357529d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
11 deletion
+5
-11
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
...ava/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
+4
-10
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
...rc/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
+1
-1
未找到文件。
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
浏览文件 @
ff5a5bcd
...
...
@@ -151,13 +151,6 @@ public class XxlJobServiceImpl implements IXxlJobService {
return
new
ReturnT
<
String
>(
500
,
"路由策略非法"
);
}
if
(
GlueTypeEnum
.
match
(
jobInfo
.
getGlueType
())
==
null
)
{
return
new
ReturnT
<
String
>(
500
,
"运行模式非法非法"
);
}
if
(
GlueTypeEnum
.
BEAN
==
GlueTypeEnum
.
match
(
jobInfo
.
getGlueType
())
&&
StringUtils
.
isBlank
(
jobInfo
.
getExecutorHandler
()))
{
return
new
ReturnT
<
String
>(
500
,
"请输入“JobHandler”"
);
}
// childJobKey valid
if
(
StringUtils
.
isNotBlank
(
jobInfo
.
getChildJobKey
()))
{
String
[]
childJobKeys
=
jobInfo
.
getChildJobKey
().
split
(
","
);
...
...
@@ -187,13 +180,14 @@ public class XxlJobServiceImpl implements IXxlJobService {
exists_jobInfo
.
setExecutorRouteStrategy
(
jobInfo
.
getExecutorRouteStrategy
());
exists_jobInfo
.
setExecutorHandler
(
jobInfo
.
getExecutorHandler
());
exists_jobInfo
.
setExecutorParam
(
jobInfo
.
getExecutorParam
());
exists_jobInfo
.
setGlueType
(
jobInfo
.
getGlueType
());
exists_jobInfo
.
setChildJobKey
(
jobInfo
.
getChildJobKey
());
xxlJobInfoDao
.
update
(
exists_jobInfo
);
// fresh quartz
String
qz_group
=
String
.
valueOf
(
exists_jobInfo
.
getJobGroup
());
String
qz_name
=
String
.
valueOf
(
exists_jobInfo
.
getId
());
try
{
// fresh quartz
boolean
ret
=
XxlJobDynamicScheduler
.
rescheduleJob
(
String
.
valueOf
(
exists_jobInfo
.
getJobGroup
()),
String
.
valueOf
(
exists_jobInfo
.
getId
()),
exists_jobInfo
.
getJobCron
());
boolean
ret
=
XxlJobDynamicScheduler
.
rescheduleJob
(
qz_group
,
qz_name
,
exists_jobInfo
.
getJobCron
());
return
ret
?
ReturnT
.
SUCCESS
:
ReturnT
.
FAIL
;
}
catch
(
SchedulerException
e
)
{
logger
.
error
(
""
,
e
);
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
浏览文件 @
ff5a5bcd
...
...
@@ -264,7 +264,7 @@ logging.info("脚本文件:" + sys.argv[0])
<div
class=
"form-group"
>
<label
for=
"firstname"
class=
"col-sm-2 control-label"
>
运行模式
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
>
<select
class=
"form-control glueType"
name=
"glueType"
>
<select
class=
"form-control glueType"
name=
"glueType"
disabled
>
<
#list
GlueTypeEnum
as
item
>
<option
value=
"${item}"
>
${item.desc}
</option>
</
#
list>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录