Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
tool
/
xxl-job
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f4576a37
authored
Oct 05, 2018
by
xuxueli
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新RM
1 parent
39a8ecd7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
11 deletions
Dockerfile
doc/XXL-JOB官方文档.md
pom.xml
xxl-job-admin/Dockerfile
xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteLFU.java
xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteLRU.java
xxl-job-admin/src/main/resources/i18n/message_en.properties
Dockerfile
View file @
f4576a3
FROM
tomcat
FROM
tomcat
:8.0-jre8-slim
MAINTAINER
youji@ebay.com
MAINTAINER
xuxueli
ADD
xxl-job-admin/target/xxl-job-admin.*.war /usr/local/tomcat/webapps/
scheduler
.war
ADD
xxl-job-admin/target/xxl-job-admin.*.war /usr/local/tomcat/webapps/
xxl-job-admin
.war
ADD
xxl-job-core/target/xxl-job-core.*.jar /usr/local/tomcat/webapps/
ADD
xxl-job-core/target/xxl-job-core.*.jar /usr/local/tomcat/webapps/
ADD
xxl-job-executor-samples/xxl-job-executor-sample-springboot/target/xxl-job-executor-sample*..jar /usr/local/tomcat/webapps/
ADD
xxl-job-executor-samples/xxl-job-executor-sample-springboot/target/xxl-job-executor-sample*..jar /usr/local/tomcat/webapps/
ADD
xxl-job-executor-samples/xxl-job-executor-sample-spring/target/xxl-job-executor-sample-spring.*.war /usr/local/tomcat/webapps/executor.war
ADD
xxl-job-executor-samples/xxl-job-executor-sample-spring/target/xxl-job-executor-sample-spring.*.war /usr/local/tomcat/webapps/executor.war
...
...
doc/XXL-JOB官方文档.md
View file @
f4576a3
...
@@ -1307,7 +1307,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
...
@@ -1307,7 +1307,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
-
5、调度任务优先级;
-
5、调度任务优先级;
-
6、移除quartz依赖,重写调度模块:新增或恢复任务时将下次执行记录插入delayqueue,调度中心集群竞争分布式锁,成功节点批量加载到期delayqueue数据,批量执行。
-
6、移除quartz依赖,重写调度模块:新增或恢复任务时将下次执行记录插入delayqueue,调度中心集群竞争分布式锁,成功节点批量加载到期delayqueue数据,批量执行。
-
7、springboot 和 docker镜像,并且推送docker镜像到中央仓库,更进一步实现产品开箱即用;
-
7、springboot 和 docker镜像,并且推送docker镜像到中央仓库,更进一步实现产品开箱即用;
-
8、多数据库支持;
-
8、多数据库支持
,在重写并移除Quartz的基础上,DAO层通过JPA实现,不限制数据库类型
;
-
9、执行器Log清理功能:调度中心Log删除时同步删除执行器中的Log文件;
-
9、执行器Log清理功能:调度中心Log删除时同步删除执行器中的Log文件;
-
10、Bean模式任务,JobHandler自动从执行器中查询展示为下拉框,选择后自动填充任务名称等属性;
-
10、Bean模式任务,JobHandler自动从执行器中查询展示为下拉框,选择后自动填充任务名称等属性;
-
11、API事件触发类型任务(更类似MQ消息)支持"动态传参、延时消费";该类型任务不走Quartz,单独建立MQ消息表,调度中心竞争触发;待定,该功能与 XXL-MQ 冲突,该场景建议用后者;
-
11、API事件触发类型任务(更类似MQ消息)支持"动态传参、延时消费";该类型任务不走Quartz,单独建立MQ消息表,调度中心竞争触发;待定,该功能与 XXL-MQ 冲突,该场景建议用后者;
...
@@ -1325,6 +1325,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
...
@@ -1325,6 +1325,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
-
23、流程任务等,透传动态参数;
-
23、流程任务等,透传动态参数;
-
24、任务状态与quartz解耦,降低quartz调度压力,仅NORMAL状态任务绑定quartz;
-
24、任务状态与quartz解耦,降低quartz调度压力,仅NORMAL状态任务绑定quartz;
-
25、任务支持切换执行器;
-
25、任务支持切换执行器;
-
26、任务自动注册;待考虑,因为任务自动注册将会导致任务难以管理控制;
## 七、其他
## 七、其他
...
...
pom.xml
View file @
f4576a3
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
2.
2
</version>
<version>
2.
5
</version>
<configuration>
<configuration>
<archiveClasses>
false
</archiveClasses>
<archiveClasses>
false
</archiveClasses>
</configuration>
</configuration>
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<artifactId>
maven-javadoc-plugin
</artifactId>
<version>
2.
9.1
</version>
<version>
2.
10.3
</version>
<executions>
<executions>
<execution>
<execution>
<phase>
package
</phase>
<phase>
package
</phase>
...
...
xxl-job-admin/Dockerfile
View file @
f4576a3
FROM
tomcat:
latest
FROM
tomcat:
8.0-jre8-slim
MAINTAINER
xuxueli
MAINTAINER
xuxueli
ADD
target/xxl-job-admin-*.war /usr/local/tomcat/webapps/xxl-job-admin.war
\ No newline at end of file
\ No newline at end of file
ADD
target/xxl-job-admin*.war /usr/local/tomcat/webapps/xxl-job-admin.war
\ No newline at end of file
\ No newline at end of file
xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteLFU.java
View file @
f4576a3
...
@@ -31,7 +31,7 @@ public class ExecutorRouteLFU extends ExecutorRouter {
...
@@ -31,7 +31,7 @@ public class ExecutorRouteLFU extends ExecutorRouter {
HashMap
<
String
,
Integer
>
lfuItemMap
=
jobLfuMap
.
get
(
jobId
);
// Key排序可以用TreeMap+构造入参Compare;Value排序暂时只能通过ArrayList;
HashMap
<
String
,
Integer
>
lfuItemMap
=
jobLfuMap
.
get
(
jobId
);
// Key排序可以用TreeMap+构造入参Compare;Value排序暂时只能通过ArrayList;
if
(
lfuItemMap
==
null
)
{
if
(
lfuItemMap
==
null
)
{
lfuItemMap
=
new
HashMap
<
String
,
Integer
>();
lfuItemMap
=
new
HashMap
<
String
,
Integer
>();
jobLfuMap
.
put
(
jobId
,
lfuItemMap
);
jobLfuMap
.
put
IfAbsent
(
jobId
,
lfuItemMap
);
// 避免重复覆盖
}
}
for
(
String
address:
addressList
)
{
for
(
String
address:
addressList
)
{
if
(!
lfuItemMap
.
containsKey
(
address
)
||
lfuItemMap
.
get
(
address
)
>
1000000
)
{
if
(!
lfuItemMap
.
containsKey
(
address
)
||
lfuItemMap
.
get
(
address
)
>
1000000
)
{
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/core/route/strategy/ExecutorRouteLRU.java
View file @
f4576a3
...
@@ -37,7 +37,7 @@ public class ExecutorRouteLRU extends ExecutorRouter {
...
@@ -37,7 +37,7 @@ public class ExecutorRouteLRU extends ExecutorRouter {
* b、removeEldestEntry:新增元素时将会调用,返回true时会删除最老元素;可封装LinkedHashMap并重写该方法,比如定义最大容量,超出是返回true即可实现固定长度的LRU算法;
* b、removeEldestEntry:新增元素时将会调用,返回true时会删除最老元素;可封装LinkedHashMap并重写该方法,比如定义最大容量,超出是返回true即可实现固定长度的LRU算法;
*/
*/
lruItem
=
new
LinkedHashMap
<>(
16
,
0.75f
,
true
);
lruItem
=
new
LinkedHashMap
<>(
16
,
0.75f
,
true
);
jobLRUMap
.
put
(
jobId
,
lruItem
);
jobLRUMap
.
put
IfAbsent
(
jobId
,
lruItem
);
}
}
// put
// put
...
...
xxl-job-admin/src/main/resources/i18n/message_en.properties
View file @
f4576a3
...
@@ -185,7 +185,7 @@ jobgroup_field_addressType_limit=Manually registration type, the machine address
...
@@ -185,7 +185,7 @@ jobgroup_field_addressType_limit=Manually registration type, the machine address
jobgroup_field_registryList
=
machine address
jobgroup_field_registryList
=
machine address
jobgroup_field_registryList_unvalid
=
registry machine address is illegal
jobgroup_field_registryList_unvalid
=
registry machine address is illegal
jobgroup_field_registryList_placeholder
=
Please enter the machine address, if there are more than one comma separated
jobgroup_field_registryList_placeholder
=
Please enter the machine address, if there are more than one comma separated
jobgroup_field_appName_limit
=
Limit the beginning of a lowercase letter, consists of lowercase letters、number and
underscores
.
jobgroup_field_appName_limit
=
Limit the beginning of a lowercase letter, consists of lowercase letters、number and
hyphen
.
jobgroup_field_appName_length
=
AppName length is limited to 4~64
jobgroup_field_appName_length
=
AppName length is limited to 4~64
jobgroup_field_title_length
=
Title length is limited to 4~12
jobgroup_field_title_length
=
Title length is limited to 4~12
jobgroup_field_order_digits
=
Please enter a positive integer
jobgroup_field_order_digits
=
Please enter a positive integer
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment