Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
bb62887f
提交
bb62887f
authored
4月 11, 2020
作者:
xuxueli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update rm
上级
6343f4b0
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
51 行增加
和
51 行删除
+51
-51
XXL-JOB-English-Documentation.md
doc/XXL-JOB-English-Documentation.md
+2
-2
XXL-JOB官方文档.md
doc/XXL-JOB官方文档.md
+1
-1
JobGroupController.java
...java/com/xxl/job/admin/controller/JobGroupController.java
+13
-13
XxlJobGroup.java
...c/main/java/com/xxl/job/admin/core/model/XxlJobGroup.java
+5
-5
JobRegistryMonitorHelper.java
...m/xxl/job/admin/core/thread/JobRegistryMonitorHelper.java
+4
-4
XxlJobGroupDao.java
...n/src/main/java/com/xxl/job/admin/dao/XxlJobGroupDao.java
+2
-2
XxlJobGroupMapper.xml
...n/src/main/resources/mybatis-mapper/XxlJobGroupMapper.xml
+7
-7
jobgroup.index.1.js
...ob-admin/src/main/resources/static/js/jobgroup.index.1.js
+7
-7
jobgroup.index.ftl
.../src/main/resources/templates/jobgroup/jobgroup.index.ftl
+4
-4
user.index.ftl
...ob-admin/src/main/resources/templates/user/user.index.ftl
+2
-2
XxlJobGroupDaoTest.java
...c/test/java/com/xxl/job/admin/dao/XxlJobGroupDaoTest.java
+2
-2
XxlJobExecutor.java
...c/main/java/com/xxl/job/core/executor/XxlJobExecutor.java
+2
-2
没有找到文件。
doc/XXL-JOB-English-Documentation.md
浏览文件 @
bb62887f
...
...
@@ -504,7 +504,7 @@ Concrete contet describe as follows:
<!-- executor port[required] -->
<property name="port" value="${xxl.job.executor.port}" />
<!-- executor AppName[required],auto register will be closed if it blank -->
<property name="app
N
ame" value="${xxl.job.executor.appname}" />
<property name="app
n
ame" value="${xxl.job.executor.appname}" />
<!-- register center address of executor [required],auto register will be closed if it blank -->
<property name="adminAddresses" value="${xxl.job.admin.addresses}" />
<!-- log path of executor[required] -->
...
...
@@ -663,7 +663,7 @@ If you want to create a new executor,please click "+新增执行器" button:
### Description of executor attributes
App
Name: the unique identity of the executor cluster,executor will registe automatically and periodically by appN
ame so that it can be scheduled.
App
name: the unique identity of the executor cluster,executor will registe automatically and periodically by appn
ame so that it can be scheduled.
名称: the name of ther executor,it is used to describe the executor.
排序: the order of executor,it will be used in the place where need to select executor.
注册方式:which way the schedule center used to acquire executor address through;
...
...
doc/XXL-JOB官方文档.md
浏览文件 @
bb62887f
...
...
@@ -617,7 +617,7 @@ public XxlJobSpringExecutor xxlJobExecutor() {
logger.info(">>>>>>>>>>> xxl-job config init.");
XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
xxlJobSpringExecutor.setAdminAddresses(adminAddresses);
xxlJobSpringExecutor.setApp
Name(appN
ame);
xxlJobSpringExecutor.setApp
name(appn
ame);
xxlJobSpringExecutor.setIp(ip);
xxlJobSpringExecutor.setPort(port);
xxlJobSpringExecutor.setAccessToken(accessToken);
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/JobGroupController.java
浏览文件 @
bb62887f
...
...
@@ -43,11 +43,11 @@ public class JobGroupController {
public
Map
<
String
,
Object
>
pageList
(
HttpServletRequest
request
,
@RequestParam
(
required
=
false
,
defaultValue
=
"0"
)
int
start
,
@RequestParam
(
required
=
false
,
defaultValue
=
"10"
)
int
length
,
String
app
N
ame
,
String
title
)
{
String
app
n
ame
,
String
title
)
{
// page query
List
<
XxlJobGroup
>
list
=
xxlJobGroupDao
.
pageList
(
start
,
length
,
app
N
ame
,
title
);
int
list_count
=
xxlJobGroupDao
.
pageListCount
(
start
,
length
,
app
N
ame
,
title
);
List
<
XxlJobGroup
>
list
=
xxlJobGroupDao
.
pageList
(
start
,
length
,
app
n
ame
,
title
);
int
list_count
=
xxlJobGroupDao
.
pageListCount
(
start
,
length
,
app
n
ame
,
title
);
// package result
Map
<
String
,
Object
>
maps
=
new
HashMap
<
String
,
Object
>();
...
...
@@ -62,10 +62,10 @@ public class JobGroupController {
public
ReturnT
<
String
>
save
(
XxlJobGroup
xxlJobGroup
){
// valid
if
(
xxlJobGroup
.
getApp
Name
()==
null
||
xxlJobGroup
.
getAppN
ame
().
trim
().
length
()==
0
)
{
if
(
xxlJobGroup
.
getApp
name
()==
null
||
xxlJobGroup
.
getAppn
ame
().
trim
().
length
()==
0
)
{
return
new
ReturnT
<
String
>(
500
,
(
I18nUtil
.
getString
(
"system_please_input"
)+
"AppName"
)
);
}
if
(
xxlJobGroup
.
getApp
Name
().
length
()<
4
||
xxlJobGroup
.
getAppN
ame
().
length
()>
64
)
{
if
(
xxlJobGroup
.
getApp
name
().
length
()<
4
||
xxlJobGroup
.
getAppn
ame
().
length
()>
64
)
{
return
new
ReturnT
<
String
>(
500
,
I18nUtil
.
getString
(
"jobgroup_field_appname_length"
)
);
}
if
(
xxlJobGroup
.
getTitle
()==
null
||
xxlJobGroup
.
getTitle
().
trim
().
length
()==
0
)
{
...
...
@@ -91,10 +91,10 @@ public class JobGroupController {
@ResponseBody
public
ReturnT
<
String
>
update
(
XxlJobGroup
xxlJobGroup
){
// valid
if
(
xxlJobGroup
.
getApp
Name
()==
null
||
xxlJobGroup
.
getAppN
ame
().
trim
().
length
()==
0
)
{
if
(
xxlJobGroup
.
getApp
name
()==
null
||
xxlJobGroup
.
getAppn
ame
().
trim
().
length
()==
0
)
{
return
new
ReturnT
<
String
>(
500
,
(
I18nUtil
.
getString
(
"system_please_input"
)+
"AppName"
)
);
}
if
(
xxlJobGroup
.
getApp
Name
().
length
()<
4
||
xxlJobGroup
.
getAppN
ame
().
length
()>
64
)
{
if
(
xxlJobGroup
.
getApp
name
().
length
()<
4
||
xxlJobGroup
.
getAppn
ame
().
length
()>
64
)
{
return
new
ReturnT
<
String
>(
500
,
I18nUtil
.
getString
(
"jobgroup_field_appname_length"
)
);
}
if
(
xxlJobGroup
.
getTitle
()==
null
||
xxlJobGroup
.
getTitle
().
trim
().
length
()==
0
)
{
...
...
@@ -102,7 +102,7 @@ public class JobGroupController {
}
if
(
xxlJobGroup
.
getAddressType
()
==
0
)
{
// 0=自动注册
List
<
String
>
registryList
=
findRegistryByAppName
(
xxlJobGroup
.
getApp
N
ame
());
List
<
String
>
registryList
=
findRegistryByAppName
(
xxlJobGroup
.
getApp
n
ame
());
String
addressListStr
=
null
;
if
(
registryList
!=
null
&&
!
registryList
.
isEmpty
())
{
Collections
.
sort
(
registryList
);
...
...
@@ -130,14 +130,14 @@ public class JobGroupController {
return
(
ret
>
0
)?
ReturnT
.
SUCCESS
:
ReturnT
.
FAIL
;
}
private
List
<
String
>
findRegistryByAppName
(
String
app
N
ameParam
){
private
List
<
String
>
findRegistryByAppName
(
String
app
n
ameParam
){
HashMap
<
String
,
List
<
String
>>
appAddressMap
=
new
HashMap
<
String
,
List
<
String
>>();
List
<
XxlJobRegistry
>
list
=
xxlJobRegistryDao
.
findAll
(
RegistryConfig
.
DEAD_TIMEOUT
,
new
Date
());
if
(
list
!=
null
)
{
for
(
XxlJobRegistry
item:
list
)
{
if
(
RegistryConfig
.
RegistType
.
EXECUTOR
.
name
().
equals
(
item
.
getRegistryGroup
()))
{
String
app
N
ame
=
item
.
getRegistryKey
();
List
<
String
>
registryList
=
appAddressMap
.
get
(
app
N
ame
);
String
app
n
ame
=
item
.
getRegistryKey
();
List
<
String
>
registryList
=
appAddressMap
.
get
(
app
n
ame
);
if
(
registryList
==
null
)
{
registryList
=
new
ArrayList
<
String
>();
}
...
...
@@ -145,11 +145,11 @@ public class JobGroupController {
if
(!
registryList
.
contains
(
item
.
getRegistryValue
()))
{
registryList
.
add
(
item
.
getRegistryValue
());
}
appAddressMap
.
put
(
app
N
ame
,
registryList
);
appAddressMap
.
put
(
app
n
ame
,
registryList
);
}
}
}
return
appAddressMap
.
get
(
app
N
ameParam
);
return
appAddressMap
.
get
(
app
n
ameParam
);
}
@RequestMapping
(
"/remove"
)
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/core/model/XxlJobGroup.java
浏览文件 @
bb62887f
...
...
@@ -10,7 +10,7 @@ import java.util.List;
public
class
XxlJobGroup
{
private
int
id
;
private
String
app
N
ame
;
private
String
app
n
ame
;
private
String
title
;
private
int
addressType
;
// 执行器地址类型:0=自动注册、1=手动录入
private
String
addressList
;
// 执行器地址列表,多地址逗号分隔(手动录入)
...
...
@@ -32,12 +32,12 @@ public class XxlJobGroup {
this
.
id
=
id
;
}
public
String
getApp
N
ame
()
{
return
app
N
ame
;
public
String
getApp
n
ame
()
{
return
app
n
ame
;
}
public
void
setApp
Name
(
String
appN
ame
)
{
this
.
app
Name
=
appN
ame
;
public
void
setApp
name
(
String
appn
ame
)
{
this
.
app
name
=
appn
ame
;
}
public
String
getTitle
()
{
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobRegistryMonitorHelper.java
浏览文件 @
bb62887f
...
...
@@ -46,8 +46,8 @@ public class JobRegistryMonitorHelper {
if
(
list
!=
null
)
{
for
(
XxlJobRegistry
item:
list
)
{
if
(
RegistryConfig
.
RegistType
.
EXECUTOR
.
name
().
equals
(
item
.
getRegistryGroup
()))
{
String
app
N
ame
=
item
.
getRegistryKey
();
List
<
String
>
registryList
=
appAddressMap
.
get
(
app
N
ame
);
String
app
n
ame
=
item
.
getRegistryKey
();
List
<
String
>
registryList
=
appAddressMap
.
get
(
app
n
ame
);
if
(
registryList
==
null
)
{
registryList
=
new
ArrayList
<
String
>();
}
...
...
@@ -55,14 +55,14 @@ public class JobRegistryMonitorHelper {
if
(!
registryList
.
contains
(
item
.
getRegistryValue
()))
{
registryList
.
add
(
item
.
getRegistryValue
());
}
appAddressMap
.
put
(
app
N
ame
,
registryList
);
appAddressMap
.
put
(
app
n
ame
,
registryList
);
}
}
}
// fresh group address
for
(
XxlJobGroup
group:
groupList
)
{
List
<
String
>
registryList
=
appAddressMap
.
get
(
group
.
getApp
N
ame
());
List
<
String
>
registryList
=
appAddressMap
.
get
(
group
.
getApp
n
ame
());
String
addressListStr
=
null
;
if
(
registryList
!=
null
&&
!
registryList
.
isEmpty
())
{
Collections
.
sort
(
registryList
);
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/dao/XxlJobGroupDao.java
浏览文件 @
bb62887f
...
...
@@ -26,12 +26,12 @@ public interface XxlJobGroupDao {
public
List
<
XxlJobGroup
>
pageList
(
@Param
(
"offset"
)
int
offset
,
@Param
(
"pagesize"
)
int
pagesize
,
@Param
(
"app
Name"
)
String
appN
ame
,
@Param
(
"app
name"
)
String
appn
ame
,
@Param
(
"title"
)
String
title
);
public
int
pageListCount
(
@Param
(
"offset"
)
int
offset
,
@Param
(
"pagesize"
)
int
pagesize
,
@Param
(
"app
Name"
)
String
appN
ame
,
@Param
(
"app
name"
)
String
appn
ame
,
@Param
(
"title"
)
String
title
);
}
xxl-job-admin/src/main/resources/mybatis-mapper/XxlJobGroupMapper.xml
浏览文件 @
bb62887f
...
...
@@ -5,7 +5,7 @@
<resultMap
id=
"XxlJobGroup"
type=
"com.xxl.job.admin.core.model.XxlJobGroup"
>
<result
column=
"id"
property=
"id"
/>
<result
column=
"app_name"
property=
"app
N
ame"
/>
<result
column=
"app_name"
property=
"app
n
ame"
/>
<result
column=
"title"
property=
"title"
/>
<result
column=
"address_type"
property=
"addressType"
/>
<result
column=
"address_list"
property=
"addressList"
/>
...
...
@@ -34,12 +34,12 @@
<insert
id=
"save"
parameterType=
"com.xxl.job.admin.core.model.XxlJobGroup"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
INSERT INTO xxl_job_group ( `app_name`, `title`, `address_type`, `address_list`)
values ( #{app
N
ame}, #{title}, #{addressType}, #{addressList});
values ( #{app
n
ame}, #{title}, #{addressType}, #{addressList});
</insert>
<update
id=
"update"
parameterType=
"com.xxl.job.admin.core.model.XxlJobGroup"
>
UPDATE xxl_job_group
SET `app_name` = #{app
N
ame},
SET `app_name` = #{app
n
ame},
`title` = #{title},
`address_type` = #{addressType},
`address_list` = #{addressList}
...
...
@@ -61,8 +61,8 @@
SELECT
<include
refid=
"Base_Column_List"
/>
FROM xxl_job_group AS t
<trim
prefix=
"WHERE"
prefixOverrides=
"AND | OR"
>
<if
test=
"app
Name != null and appN
ame != ''"
>
AND t.app_name like CONCAT(CONCAT('%', #{app
N
ame}), '%')
<if
test=
"app
name != null and appn
ame != ''"
>
AND t.app_name like CONCAT(CONCAT('%', #{app
n
ame}), '%')
</if>
<if
test=
"title != null and title != ''"
>
AND t.title like CONCAT(CONCAT('%', #{title}), '%')
...
...
@@ -76,8 +76,8 @@
SELECT count(1)
FROM xxl_job_group AS t
<trim
prefix=
"WHERE"
prefixOverrides=
"AND | OR"
>
<if
test=
"app
Name != null and appN
ame != ''"
>
AND t.app_name like CONCAT(CONCAT('%', #{app
N
ame}), '%')
<if
test=
"app
name != null and appn
ame != ''"
>
AND t.app_name like CONCAT(CONCAT('%', #{app
n
ame}), '%')
</if>
<if
test=
"title != null and title != ''"
>
AND t.title like CONCAT(CONCAT('%', #{title}), '%')
...
...
xxl-job-admin/src/main/resources/static/js/jobgroup.index.1.js
浏览文件 @
bb62887f
...
...
@@ -10,7 +10,7 @@ $(function() {
type
:
"post"
,
data
:
function
(
d
)
{
var
obj
=
{};
obj
.
app
Name
=
$
(
'#appN
ame'
).
val
();
obj
.
app
name
=
$
(
'#appn
ame'
).
val
();
obj
.
title
=
$
(
'#title'
).
val
();
obj
.
start
=
d
.
start
;
obj
.
length
=
d
.
length
;
...
...
@@ -26,7 +26,7 @@ $(function() {
"visible"
:
false
},
{
"data"
:
'app
N
ame'
,
"data"
:
'app
n
ame'
,
"visible"
:
true
,
"width"
:
'30%'
},
...
...
@@ -196,7 +196,7 @@ $(function() {
errorClass
:
'help-block'
,
focusInvalid
:
true
,
rules
:
{
app
N
ame
:
{
app
n
ame
:
{
required
:
true
,
rangelength
:[
4
,
64
],
myValid01
:
true
...
...
@@ -207,7 +207,7 @@ $(function() {
}
},
messages
:
{
app
N
ame
:
{
app
n
ame
:
{
required
:
I18n
.
system_please_input
+
"AppName"
,
rangelength
:
I18n
.
jobgroup_field_appname_length
,
myValid01
:
I18n
.
jobgroup_field_appname_limit
...
...
@@ -277,7 +277,7 @@ $(function() {
var
row
=
tableData
[
'key'
+
id
];
$
(
"#updateModal .form input[name='id']"
).
val
(
row
.
id
);
$
(
"#updateModal .form input[name='app
Name']"
).
val
(
row
.
appN
ame
);
$
(
"#updateModal .form input[name='app
name']"
).
val
(
row
.
appn
ame
);
$
(
"#updateModal .form input[name='title']"
).
val
(
row
.
title
);
// 注册方式
...
...
@@ -293,7 +293,7 @@ $(function() {
errorClass
:
'help-block'
,
focusInvalid
:
true
,
rules
:
{
app
N
ame
:
{
app
n
ame
:
{
required
:
true
,
rangelength
:[
4
,
64
],
myValid01
:
true
...
...
@@ -304,7 +304,7 @@ $(function() {
}
},
messages
:
{
appN
ame
:
{
appn
ame
:
{
required
:
I18n
.
system_please_input
+
"AppName"
,
rangelength
:
I18n
.
jobgroup_field_appname_length
,
myValid01
:
I18n
.
jobgroup_field_appname_limit
...
...
xxl-job-admin/src/main/resources/templates/jobgroup/jobgroup.index.ftl
浏览文件 @
bb62887f
...
...
@@ -28,7 +28,7 @@
<div
class=
"col-xs-3"
>
<div
class=
"input-group"
>
<span
class=
"input-group-addon"
>
AppName
</span>
<input
type=
"text"
class=
"form-control"
id=
"app
N
ame"
autocomplete=
"on"
placeholder=
"${I18n.system_please_input}AppName"
>
<input
type=
"text"
class=
"form-control"
id=
"app
n
ame"
autocomplete=
"on"
placeholder=
"${I18n.system_please_input}AppName"
>
</div>
</div>
<div
class=
"col-xs-3"
>
...
...
@@ -53,7 +53,7 @@
<thead>
<tr>
<th
name=
"id"
>
ID
</th>
<th
name=
"app
N
ame"
>
AppName
</th>
<th
name=
"app
n
ame"
>
AppName
</th>
<th
name=
"title"
>
${I18n.jobgroup_field_title}
</th>
<th
name=
"addressType"
>
${I18n.jobgroup_field_addressType}
</th>
<th
name=
"registryList"
>
OnLine ${I18n.jobgroup_field_registryList}
</th>
...
...
@@ -81,7 +81,7 @@
<form
class=
"form-horizontal form"
role=
"form"
>
<div
class=
"form-group"
>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
AppName
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-10"
><input
type=
"text"
class=
"form-control"
name=
"app
N
ame"
placeholder=
"${I18n.system_please_input}AppName"
maxlength=
"64"
></div>
<div
class=
"col-sm-10"
><input
type=
"text"
class=
"form-control"
name=
"app
n
ame"
placeholder=
"${I18n.system_please_input}AppName"
maxlength=
"64"
></div>
</div>
<div
class=
"form-group"
>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
${I18n.jobgroup_field_title}
<font
color=
"red"
>
*
</font></label>
...
...
@@ -125,7 +125,7 @@
<form
class=
"form-horizontal form"
role=
"form"
>
<div
class=
"form-group"
>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
AppName
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-10"
><input
type=
"text"
class=
"form-control"
name=
"app
N
ame"
placeholder=
"${I18n.system_please_input}AppName"
maxlength=
"64"
></div>
<div
class=
"col-sm-10"
><input
type=
"text"
class=
"form-control"
name=
"app
n
ame"
placeholder=
"${I18n.system_please_input}AppName"
maxlength=
"64"
></div>
</div>
<div
class=
"form-group"
>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
${I18n.jobgroup_field_title}
<font
color=
"red"
>
*
</font></label>
...
...
xxl-job-admin/src/main/resources/templates/user/user.index.ftl
浏览文件 @
bb62887f
...
...
@@ -108,7 +108,7 @@
<div
class=
"col-sm-10"
>
<
#
if
groupList
?
exists
&&
groupList
?
size
gt
0
>
<
#
list
groupList
as
item
>
<input
type=
"checkbox"
name=
"permission"
value=
"${item.id}"
/>
${item.title}(${item.app
N
ame})
<br>
<input
type=
"checkbox"
name=
"permission"
value=
"${item.id}"
/>
${item.title}(${item.app
n
ame})
<br>
</
#
list>
</
#
if>
</div>
...
...
@@ -158,7 +158,7 @@
<div
class=
"col-sm-10"
>
<
#
if
groupList
?
exists
&&
groupList
?
size
gt
0
>
<
#
list
groupList
as
item
>
<input
type=
"checkbox"
name=
"permission"
value=
"${item.id}"
/>
${item.title}(${item.app
N
ame})
<br>
<input
type=
"checkbox"
name=
"permission"
value=
"${item.id}"
/>
${item.title}(${item.app
n
ame})
<br>
</
#
list>
</
#
if>
</div>
...
...
xxl-job-admin/src/test/java/com/xxl/job/admin/dao/XxlJobGroupDaoTest.java
浏览文件 @
bb62887f
...
...
@@ -23,7 +23,7 @@ public class XxlJobGroupDaoTest {
List
<
XxlJobGroup
>
list2
=
xxlJobGroupDao
.
findByAddressType
(
0
);
XxlJobGroup
group
=
new
XxlJobGroup
();
group
.
setApp
N
ame
(
"setAppName"
);
group
.
setApp
n
ame
(
"setAppName"
);
group
.
setTitle
(
"setTitle"
);
group
.
setAddressType
(
0
);
group
.
setAddressList
(
"setAddressList"
);
...
...
@@ -31,7 +31,7 @@ public class XxlJobGroupDaoTest {
int
ret
=
xxlJobGroupDao
.
save
(
group
);
XxlJobGroup
group2
=
xxlJobGroupDao
.
load
(
group
.
getId
());
group2
.
setApp
N
ame
(
"setAppName2"
);
group2
.
setApp
n
ame
(
"setAppName2"
);
group2
.
setTitle
(
"setTitle2"
);
group2
.
setAddressType
(
2
);
group2
.
setAddressList
(
"setAddressList2"
);
...
...
xxl-job-core/src/main/java/com/xxl/job/core/executor/XxlJobExecutor.java
浏览文件 @
bb62887f
...
...
@@ -135,7 +135,7 @@ public class XxlJobExecutor {
// ---------------------- executor-server (rpc provider) ----------------------
private
EmbedServer
embedServer
=
null
;
private
void
initEmbedServer
(
String
address
,
String
ip
,
int
port
,
String
app
N
ame
,
String
accessToken
)
throws
Exception
{
private
void
initEmbedServer
(
String
address
,
String
ip
,
int
port
,
String
app
n
ame
,
String
accessToken
)
throws
Exception
{
// fill ip port
port
=
port
>
0
?
port:
NetUtil
.
findAvailablePort
(
9999
);
...
...
@@ -149,7 +149,7 @@ public class XxlJobExecutor {
// start
embedServer
=
new
EmbedServer
();
embedServer
.
start
(
address
,
port
,
app
N
ame
,
accessToken
);
embedServer
.
start
(
address
,
port
,
app
n
ame
,
accessToken
);
}
private
void
stopEmbedServer
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论