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
a410b846
authored
Nov 08, 2018
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复执行器启动之后jetty停止的问题;
parent
b05620a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
doc/XXL-JOB官方文档.md
xxl-job-executor-samples/xxl-job-executor-sample-spring/src/test/java/com/xxl/executor/test/DemoJobHandlerTest.java → xxl-job-admin/src/test/java/com/xxl/job/executor/ExecutorBizTest.java
doc/XXL-JOB官方文档.md
View file @
a410b846
## 《分
布式任务调度平台XXL-JOB》
## 《分
布式任务调度平台XXL-JOB》
...
@@ -998,14 +998,14 @@ API服务请求参考代码:可参考任务界面操作的ajax请求。任何a
...
@@ -998,14 +998,14 @@ API服务请求参考代码:可参考任务界面操作的ajax请求。任何a
### 5.12 执行器API服务
### 5.12 执行器API服务
执行器提供了API服务,供调度中心选择使用,目前提供的API服务有:
执行器提供了API服务,供调度中心选择使用,目前提供的API服务有:
1、心跳检测
1、心跳检测
:调度中心使用
2、忙碌检测
2、忙碌检测
:调度中心使用
3、触发任务执行
3、触发任务执行
:调度中心使用;本地进行任务开发时,可使用该API服务模拟触发任务;
4、获取Rolling Log
4、获取Rolling Log
:调度中心使用
5、终止任务
5、终止任务
:调度中心使用
API服务位置:com.xxl.job.core.biz.ExecutorBiz
API服务位置:com.xxl.job.core.biz.ExecutorBiz
API服务请求参考代码:com.xxl.
executor.test.DemoJobHandler
Test
API服务请求参考代码:com.xxl.
job.executor.ExecutorBiz
Test
### 5.13 故障转移 & 失败重试
### 5.13 故障转移 & 失败重试
一次完整任务流程包括"调度(调度中心) + 执行(执行器)"两个阶段。
一次完整任务流程包括"调度(调度中心) + 执行(执行器)"两个阶段。
...
...
xxl-job-
executor-samples/xxl-job-executor-sample-spring/src/test/java/com/xxl/executor/test/DemoJobHandler
Test.java
→
xxl-job-
admin/src/test/java/com/xxl/job/executor/ExecutorBiz
Test.java
View file @
a410b846
package
com
.
xxl
.
executor
.
test
;
package
com
.
xxl
.
job
.
executor
;
import
com.xxl.job.core.biz.ExecutorBiz
;
import
com.xxl.job.core.biz.ExecutorBiz
;
import
com.xxl.job.core.biz.model.ReturnT
;
import
com.xxl.job.core.biz.model.ReturnT
;
...
@@ -15,7 +15,7 @@ import com.xxl.rpc.serialize.Serializer;
...
@@ -15,7 +15,7 @@ import com.xxl.rpc.serialize.Serializer;
*
*
* Created by xuxueli on 17/5/12.
* Created by xuxueli on 17/5/12.
*/
*/
public
class
DemoJobHandler
Test
{
public
class
ExecutorBiz
Test
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
...
@@ -23,6 +23,16 @@ public class DemoJobHandlerTest {
...
@@ -23,6 +23,16 @@ public class DemoJobHandlerTest {
String
jobHandler
=
"demoJobHandler"
;
String
jobHandler
=
"demoJobHandler"
;
String
params
=
""
;
String
params
=
""
;
runTest
(
jobHandler
,
params
);
}
/**
* run jobhandler
*
* @param jobHandler
* @param params
*/
private
static
void
runTest
(
String
jobHandler
,
String
params
){
// trigger data
// trigger data
TriggerParam
triggerParam
=
new
TriggerParam
();
TriggerParam
triggerParam
=
new
TriggerParam
();
triggerParam
.
setJobId
(
1
);
triggerParam
.
setJobId
(
1
);
...
...
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