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
9fd8e1eb
authored
Mar 29, 2020
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update rm
parent
ac68685a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
72 additions
and
54 deletions
xxl-job-executor-samples/xxl-job-executor-sample-frameless/src/main/java/com/xuxueli/executor/sample/frameless/config/FrameLessXxlJobConfig.java
xxl-job-executor-samples/xxl-job-executor-sample-frameless/src/main/resources/xxl-job-executor.properties
xxl-job-executor-samples/xxl-job-executor-sample-jboot/src/main/java/com/xuxueli/executor/sample/jboot/config/JbootConfig.java
xxl-job-executor-samples/xxl-job-executor-sample-jboot/src/main/resources/jboot.properties
xxl-job-executor-samples/xxl-job-executor-sample-jfinal/src/main/java/com/xuxueli/executor/sample/jfinal/config/JFinalCoreConfig.java
xxl-job-executor-samples/xxl-job-executor-sample-jfinal/src/main/resources/xxl-job-executor.properties
xxl-job-executor-samples/xxl-job-executor-sample-nutz/src/main/java/com/xuxueli/executor/sample/nutz/config/NutzSetup.java
xxl-job-executor-samples/xxl-job-executor-sample-nutz/src/main/resources/xxl-job-executor.properties
xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/applicationcontext-xxl-job.xml
xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/xxl-job-executor.properties
xxl-job-executor-samples/xxl-job-executor-sample-springboot/src/main/resources/application.properties
xxl-job-executor-samples/xxl-job-executor-sample-frameless/src/main/java/com/xuxueli/executor/sample/frameless/config/FrameLessXxlJobConfig.java
View file @
9fd8e1eb
...
@@ -45,10 +45,11 @@ public class FrameLessXxlJobConfig {
...
@@ -45,10 +45,11 @@ public class FrameLessXxlJobConfig {
// init executor
// init executor
xxlJobExecutor
=
new
XxlJobExecutor
();
xxlJobExecutor
=
new
XxlJobExecutor
();
xxlJobExecutor
.
setAdminAddresses
(
xxlJobProp
.
getProperty
(
"xxl.job.admin.addresses"
));
xxlJobExecutor
.
setAdminAddresses
(
xxlJobProp
.
getProperty
(
"xxl.job.admin.addresses"
));
xxlJobExecutor
.
setAccessToken
(
xxlJobProp
.
getProperty
(
"xxl.job.accessToken"
));
xxlJobExecutor
.
setAppName
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.appname"
));
xxlJobExecutor
.
setAppName
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.appname"
));
xxlJobExecutor
.
setAddress
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.address"
));
xxlJobExecutor
.
setIp
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.ip"
));
xxlJobExecutor
.
setIp
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.ip"
));
xxlJobExecutor
.
setPort
(
Integer
.
valueOf
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.port"
)));
xxlJobExecutor
.
setPort
(
Integer
.
valueOf
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.port"
)));
xxlJobExecutor
.
setAccessToken
(
xxlJobProp
.
getProperty
(
"xxl.job.accessToken"
));
xxlJobExecutor
.
setLogPath
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.logpath"
));
xxlJobExecutor
.
setLogPath
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.logpath"
));
xxlJobExecutor
.
setLogRetentionDays
(
Integer
.
valueOf
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.logretentiondays"
)));
xxlJobExecutor
.
setLogRetentionDays
(
Integer
.
valueOf
(
xxlJobProp
.
getProperty
(
"xxl.job.executor.logretentiondays"
)));
...
...
xxl-job-executor-samples/xxl-job-executor-sample-frameless/src/main/resources/xxl-job-executor.properties
View file @
9fd8e1eb
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
### xxl-job executor address
xxl.job.executor.appname
=
xxl-job-executor-sample
xxl.job.executor.ip
=
xxl.job.executor.port
=
9994
### xxl-job, access token
### xxl-job, access token
xxl.job.accessToken
=
xxl.job.accessToken
=
### xxl-job log path
### xxl-job executor appname
xxl.job.executor.appname
=
xxl-job-executor-sample
### xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null
xxl.job.executor.address
=
### xxl-job executor server-info
xxl.job.executor.ip
=
xxl.job.executor.port
=
9999
### xxl-job executor log-path
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
### xxl-job
log retention
days
### xxl-job
executor log-retention-
days
xxl.job.executor.logretentiondays
=
30
xxl.job.executor.logretentiondays
=
30
\ No newline at end of file
xxl-job-executor-samples/xxl-job-executor-sample-jboot/src/main/java/com/xuxueli/executor/sample/jboot/config/JbootConfig.java
View file @
9fd8e1eb
...
@@ -27,10 +27,11 @@ public class JbootConfig extends JbootAppListenerBase {
...
@@ -27,10 +27,11 @@ public class JbootConfig extends JbootAppListenerBase {
// init executor
// init executor
xxlJobExecutor
=
new
XxlJobExecutor
();
xxlJobExecutor
=
new
XxlJobExecutor
();
xxlJobExecutor
.
setAdminAddresses
(
Jboot
.
configValue
(
"xxl.job.admin.addresses"
));
xxlJobExecutor
.
setAdminAddresses
(
Jboot
.
configValue
(
"xxl.job.admin.addresses"
));
xxlJobExecutor
.
setAccessToken
(
Jboot
.
configValue
(
"xxl.job.accessToken"
));
xxlJobExecutor
.
setAddress
(
Jboot
.
configValue
(
"xxl.job.executor.address"
));
xxlJobExecutor
.
setAppName
(
Jboot
.
configValue
(
"xxl.job.executor.appname"
));
xxlJobExecutor
.
setAppName
(
Jboot
.
configValue
(
"xxl.job.executor.appname"
));
xxlJobExecutor
.
setIp
(
Jboot
.
configValue
(
"xxl.job.executor.ip"
));
xxlJobExecutor
.
setIp
(
Jboot
.
configValue
(
"xxl.job.executor.ip"
));
xxlJobExecutor
.
setPort
(
Integer
.
valueOf
(
Jboot
.
configValue
(
"xxl.job.executor.port"
)));
xxlJobExecutor
.
setPort
(
Integer
.
valueOf
(
Jboot
.
configValue
(
"xxl.job.executor.port"
)));
xxlJobExecutor
.
setAccessToken
(
Jboot
.
configValue
(
"xxl.job.accessToken"
));
xxlJobExecutor
.
setLogPath
(
Jboot
.
configValue
(
"xxl.job.executor.logpath"
));
xxlJobExecutor
.
setLogPath
(
Jboot
.
configValue
(
"xxl.job.executor.logpath"
));
xxlJobExecutor
.
setLogRetentionDays
(
Integer
.
valueOf
(
Jboot
.
configValue
(
"xxl.job.executor.logretentiondays"
)));
xxlJobExecutor
.
setLogRetentionDays
(
Integer
.
valueOf
(
Jboot
.
configValue
(
"xxl.job.executor.logretentiondays"
)));
...
...
xxl-job-executor-samples/xxl-job-executor-sample-jboot/src/main/resources/jboot.properties
View file @
9fd8e1eb
#jboot port
undertow.port
=
8082
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
### xxl-job executor address
xxl.job.executor.appname
=
xxl-job-executor-sample
xxl.job.executor.ip
=
xxl.job.executor.port
=
9995
### xxl-job, access token
### xxl-job, access token
xxl.job.accessToken
=
xxl.job.accessToken
=
### xxl-job log path
### xxl-job executor appname
xxl.job.executor.appname
=
xxl-job-executor-sample
### xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null
xxl.job.executor.address
=
### xxl-job executor server-info
xxl.job.executor.ip
=
xxl.job.executor.port
=
9999
### xxl-job executor log-path
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
### xxl-job
log retention
days
### xxl-job
executor log-retention-
days
xxl.job.executor.logretentiondays
=
30
xxl.job.executor.logretentiondays
=
30
\ No newline at end of file
xxl-job-executor-samples/xxl-job-executor-sample-jfinal/src/main/java/com/xuxueli/executor/sample/jfinal/config/JFinalCoreConfig.java
View file @
9fd8e1eb
...
@@ -34,10 +34,12 @@ public class JFinalCoreConfig extends JFinalConfig {
...
@@ -34,10 +34,12 @@ public class JFinalCoreConfig extends JFinalConfig {
// init executor
// init executor
xxlJobExecutor
=
new
XxlJobExecutor
();
xxlJobExecutor
=
new
XxlJobExecutor
();
xxlJobExecutor
.
setAdminAddresses
(
xxlJobProp
.
get
(
"xxl.job.admin.addresses"
));
xxlJobExecutor
.
setAdminAddresses
(
xxlJobProp
.
get
(
"xxl.job.admin.addresses"
));
xxlJobExecutor
.
setAccessToken
(
xxlJobProp
.
get
(
"xxl.job.accessToken"
));
xxlJobExecutor
.
setAddress
(
xxlJobProp
.
get
(
"xxl.job.executor.address"
));
xxlJobExecutor
.
setAppName
(
xxlJobProp
.
get
(
"xxl.job.executor.appname"
));
xxlJobExecutor
.
setAppName
(
xxlJobProp
.
get
(
"xxl.job.executor.appname"
));
xxlJobExecutor
.
setIp
(
xxlJobProp
.
get
(
"xxl.job.executor.ip"
));
xxlJobExecutor
.
setIp
(
xxlJobProp
.
get
(
"xxl.job.executor.ip"
));
xxlJobExecutor
.
setPort
(
xxlJobProp
.
getInt
(
"xxl.job.executor.port"
));
xxlJobExecutor
.
setPort
(
xxlJobProp
.
getInt
(
"xxl.job.executor.port"
));
xxlJobExecutor
.
setAccessToken
(
xxlJobProp
.
get
(
"xxl.job.accessToken"
));
xxlJobExecutor
.
setLogPath
(
xxlJobProp
.
get
(
"xxl.job.executor.logpath"
));
xxlJobExecutor
.
setLogPath
(
xxlJobProp
.
get
(
"xxl.job.executor.logpath"
));
xxlJobExecutor
.
setLogRetentionDays
(
xxlJobProp
.
getInt
(
"xxl.job.executor.logretentiondays"
));
xxlJobExecutor
.
setLogRetentionDays
(
xxlJobProp
.
getInt
(
"xxl.job.executor.logretentiondays"
));
...
...
xxl-job-executor-samples/xxl-job-executor-sample-jfinal/src/main/resources/xxl-job-executor.properties
View file @
9fd8e1eb
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
### xxl-job executor address
xxl.job.executor.appname
=
xxl-job-executor-sample
xxl.job.executor.ip
=
xxl.job.executor.port
=
9996
### xxl-job, access token
### xxl-job, access token
xxl.job.accessToken
=
xxl.job.accessToken
=
### xxl-job log path
### xxl-job executor appname
xxl.job.executor.appname
=
xxl-job-executor-sample
### xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null
xxl.job.executor.address
=
### xxl-job executor server-info
xxl.job.executor.ip
=
xxl.job.executor.port
=
9999
### xxl-job executor log-path
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
### xxl-job
log retention
days
### xxl-job
executor log-retention-
days
xxl.job.executor.logretentiondays
=
30
xxl.job.executor.logretentiondays
=
30
\ No newline at end of file
xxl-job-executor-samples/xxl-job-executor-sample-nutz/src/main/java/com/xuxueli/executor/sample/nutz/config/NutzSetup.java
View file @
9fd8e1eb
...
@@ -36,10 +36,11 @@ public class NutzSetup implements Setup {
...
@@ -36,10 +36,11 @@ public class NutzSetup implements Setup {
// init executor
// init executor
xxlJobExecutor
=
new
XxlJobExecutor
();
xxlJobExecutor
=
new
XxlJobExecutor
();
xxlJobExecutor
.
setAdminAddresses
(
xxlJobProp
.
get
(
"xxl.job.admin.addresses"
));
xxlJobExecutor
.
setAdminAddresses
(
xxlJobProp
.
get
(
"xxl.job.admin.addresses"
));
xxlJobExecutor
.
setAccessToken
(
xxlJobProp
.
get
(
"xxl.job.accessToken"
));
xxlJobExecutor
.
setAppName
(
xxlJobProp
.
get
(
"xxl.job.executor.appname"
));
xxlJobExecutor
.
setAppName
(
xxlJobProp
.
get
(
"xxl.job.executor.appname"
));
xxlJobExecutor
.
setAddress
(
xxlJobProp
.
get
(
"xxl.job.executor.address"
));
xxlJobExecutor
.
setIp
(
xxlJobProp
.
get
(
"xxl.job.executor.ip"
));
xxlJobExecutor
.
setIp
(
xxlJobProp
.
get
(
"xxl.job.executor.ip"
));
xxlJobExecutor
.
setPort
(
xxlJobProp
.
getInt
(
"xxl.job.executor.port"
));
xxlJobExecutor
.
setPort
(
xxlJobProp
.
getInt
(
"xxl.job.executor.port"
));
xxlJobExecutor
.
setAccessToken
(
xxlJobProp
.
get
(
"xxl.job.accessToken"
));
xxlJobExecutor
.
setLogPath
(
xxlJobProp
.
get
(
"xxl.job.executor.logpath"
));
xxlJobExecutor
.
setLogPath
(
xxlJobProp
.
get
(
"xxl.job.executor.logpath"
));
xxlJobExecutor
.
setLogRetentionDays
(
xxlJobProp
.
getInt
(
"xxl.job.executor.logretentiondays"
));
xxlJobExecutor
.
setLogRetentionDays
(
xxlJobProp
.
getInt
(
"xxl.job.executor.logretentiondays"
));
...
...
xxl-job-executor-samples/xxl-job-executor-sample-nutz/src/main/resources/xxl-job-executor.properties
View file @
9fd8e1eb
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
### xxl-job executor address
xxl.job.executor.appname
=
xxl-job-executor-sample
xxl.job.executor.ip
=
xxl.job.executor.port
=
9997
### xxl-job, access token
### xxl-job, access token
xxl.job.accessToken
=
xxl.job.accessToken
=
### xxl-job log path
### xxl-job executor appname
xxl.job.executor.appname
=
xxl-job-executor-sample
### xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null
xxl.job.executor.address
=
### xxl-job executor server-info
xxl.job.executor.ip
=
xxl.job.executor.port
=
9999
### xxl-job executor log-path
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
### xxl-job
log retention
days
### xxl-job
executor log-retention-
days
xxl.job.executor.logretentiondays
=
30
xxl.job.executor.logretentiondays
=
30
\ No newline at end of file
xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/applicationcontext-xxl-job.xml
View file @
9fd8e1eb
...
@@ -25,14 +25,16 @@
...
@@ -25,14 +25,16 @@
<bean
id=
"xxlJobSpringExecutor"
class=
"com.xxl.job.core.executor.impl.XxlJobSpringExecutor"
>
<bean
id=
"xxlJobSpringExecutor"
class=
"com.xxl.job.core.executor.impl.XxlJobSpringExecutor"
>
<!-- 执行器注册中心地址[选填],为空则关闭自动注册 -->
<!-- 执行器注册中心地址[选填],为空则关闭自动注册 -->
<property
name=
"adminAddresses"
value=
"${xxl.job.admin.addresses}"
/>
<property
name=
"adminAddresses"
value=
"${xxl.job.admin.addresses}"
/>
<!-- 访问令牌[选填],非空则进行匹配校验 -->
<property
name=
"accessToken"
value=
"${xxl.job.accessToken}"
/>
<!-- 执行器AppName[选填],为空则关闭自动注册 -->
<!-- 执行器AppName[选填],为空则关闭自动注册 -->
<property
name=
"appName"
value=
"${xxl.job.executor.appname}"
/>
<property
name=
"appName"
value=
"${xxl.job.executor.appname}"
/>
<!-- 注册地址[选填],优先使用该配置作为注册地址,为空时使用内嵌服务 ”IP:PORT“ 作为注册地址 -->
<property
name=
"address"
value=
"${xxl.job.executor.address}"
/>
<!-- 执行器IP[选填],为空则自动获取 -->
<!-- 执行器IP[选填],为空则自动获取 -->
<property
name=
"ip"
value=
"${xxl.job.executor.ip}"
/>
<property
name=
"ip"
value=
"${xxl.job.executor.ip}"
/>
<!-- 执行器端口号[选填],小于等于0则自动获取 -->
<!-- 执行器端口号[选填],小于等于0则自动获取 -->
<property
name=
"port"
value=
"${xxl.job.executor.port}"
/>
<property
name=
"port"
value=
"${xxl.job.executor.port}"
/>
<!-- 访问令牌[选填],非空则进行匹配校验 -->
<property
name=
"accessToken"
value=
"${xxl.job.accessToken}"
/>
<!-- 执行器日志路径[选填],为空则使用默认路径 -->
<!-- 执行器日志路径[选填],为空则使用默认路径 -->
<property
name=
"logPath"
value=
"${xxl.job.executor.logpath}"
/>
<property
name=
"logPath"
value=
"${xxl.job.executor.logpath}"
/>
<!-- 日志保存天数[选填],值大于3时生效 -->
<!-- 日志保存天数[选填],值大于3时生效 -->
...
...
xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/resources/xxl-job-executor.properties
View file @
9fd8e1eb
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
### xxl-job executor address
xxl.job.executor.appname
=
xxl-job-executor-sample
xxl.job.executor.ip
=
xxl.job.executor.port
=
9998
### xxl-job, access token
### xxl-job, access token
xxl.job.accessToken
=
xxl.job.accessToken
=
### xxl-job log path
### xxl-job executor appname
xxl.job.executor.appname
=
xxl-job-executor-sample
### xxl-job executor registry-address: default use address to registry , otherwise use ip:port if address is null
xxl.job.executor.address
=
### xxl-job executor server-info
xxl.job.executor.ip
=
xxl.job.executor.port
=
9999
### xxl-job executor log-path
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
### xxl-job
log retention
days
### xxl-job
executor log-retention-
days
xxl.job.executor.logretentiondays
=
30
xxl.job.executor.logretentiondays
=
30
\ No newline at end of file
xxl-job-executor-samples/xxl-job-executor-sample-springboot/src/main/resources/application.properties
View file @
9fd8e1eb
...
@@ -13,14 +13,14 @@ xxl.job.admin.addresses=http://127.0.0.1:8080/xxl-job-admin
...
@@ -13,14 +13,14 @@ xxl.job.admin.addresses=http://127.0.0.1:8080/xxl-job-admin
### xxl-job, access token
### xxl-job, access token
xxl.job.accessToken
=
xxl.job.accessToken
=
### xxl-job executor a
ddress
### xxl-job executor a
ppname
xxl.job.executor.appname
=
xxl-job-executor-sample
xxl.job.executor.appname
=
xxl-job-executor-sample
### xxl-job
registry
address: default use address to registry , otherwise use ip:port if address is null
### xxl-job
executor registry-
address: default use address to registry , otherwise use ip:port if address is null
xxl.job.executor.address
=
xxl.job.executor.address
=
### xxl-job
server
info
### xxl-job
executor server-
info
xxl.job.executor.ip
=
xxl.job.executor.ip
=
xxl.job.executor.port
=
9999
xxl.job.executor.port
=
9999
### xxl-job
log
path
### xxl-job
executor log-
path
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
xxl.job.executor.logpath
=
/data/applogs/xxl-job/jobhandler
### xxl-job
log retention
days
### xxl-job
executor log-retention-
days
xxl.job.executor.logretentiondays
=
30
xxl.job.executor.logretentiondays
=
30
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