xuxueli 5 лет назад
Родитель
Сommit
0c40634451
3 измененных файлов: 60 добавлений и 60 удалений
  1. 1 1
      README.md
  2. 29 29
      doc/XXL-JOB-English-Documentation.md
  3. 30 30
      doc/XXL-JOB官方文档.md

+ 1 - 1
README.md Просмотреть файл

1
 <p align="center">
1
 <p align="center">
2
-    <img src="https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/xxl-logo.jpg" width="150">
2
+    <img src="https://www.xuxueli.com/xxl-job/data/images/xxl-logo.jpg" width="150">
3
     <h3 align="center">XXL-JOB</h3>
3
     <h3 align="center">XXL-JOB</h3>
4
     <p align="center">
4
     <p align="center">
5
         XXL-JOB, a lightweight distributed task scheduling framework.
5
         XXL-JOB, a lightweight distributed task scheduling framework.

+ 29 - 29
doc/XXL-JOB-English-Documentation.md Просмотреть файл

277
 If you has finished step 1,then you can compile the project in maven and deploy the war package to tomcat.
277
 If you has finished step 1,then you can compile the project in maven and deploy the war package to tomcat.
278
 the url to visit is :http://localhost:8080/xxl-job-admin (this address will be used by executor and use it as callback url),the index page after login in is as follow
278
 the url to visit is :http://localhost:8080/xxl-job-admin (this address will be used by executor and use it as callback url),the index page after login in is as follow
279
 
279
 
280
-![index page after login in](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_6yC0.png "index page after login in")
280
+![index page after login in](https://www.xuxueli.com/xxl-job/data/images/img_6yC0.png "index page after login in")
281
 
281
 
282
 Now,the “xxl-job-admin” project is deployed success.
282
 Now,the “xxl-job-admin” project is deployed success.
283
 
283
 
371
 #### Step 1:Create new job
371
 #### Step 1:Create new job
372
 Login in xxl-job-admin,click on the"新建任务" button, configure the job params as follows and click "保存" button to save the job info.
372
 Login in xxl-job-admin,click on the"新建任务" button, configure the job params as follows and click "保存" button to save the job info.
373
 
373
 
374
-![task management](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_o8HQ.png "task management")
374
+![task management](https://www.xuxueli.com/xxl-job/data/images/img_o8HQ.png "task management")
375
 
375
 
376
-![create task](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_ZAsz.png "create task")
376
+![create task](https://www.xuxueli.com/xxl-job/data/images/img_ZAsz.png "create task")
377
 
377
 
378
 #### Step 2:develop “GLUE模式(Java)” job
378
 #### Step 2:develop “GLUE模式(Java)” job
379
 Click “GLUE” button on the right of the job to go to GLUE editor view as shown below。“GLUE模式(Java)” mode task has been inited with default task code for printing Hello World。 ( “GLUE模式(Java)” mode task is a java code fragment implements IJobHandler interface,it will be executed in executor,you can use @Resource/@Autowire to inject other java bean instance,if you want to see more info please go to chapter 3)
379
 Click “GLUE” button on the right of the job to go to GLUE editor view as shown below。“GLUE模式(Java)” mode task has been inited with default task code for printing Hello World。 ( “GLUE模式(Java)” mode task is a java code fragment implements IJobHandler interface,it will be executed in executor,you can use @Resource/@Autowire to inject other java bean instance,if you want to see more info please go to chapter 3)
380
 
380
 
381
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Fgql.png "在这里输入图片标题")
381
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Fgql.png "在这里输入图片标题")
382
 
382
 
383
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_dNUJ.png "在这里输入图片标题")
383
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_dNUJ.png "在这里输入图片标题")
384
 
384
 
385
 #### Step 3:trigger task
385
 #### Step 3:trigger task
386
 If you want to run the job manually please click "执行" button on the right of the job(usually we trigger job by Cron expression)
386
 If you want to run the job manually please click "执行" button on the right of the job(usually we trigger job by Cron expression)
388
 #### Step 4:view log 
388
 #### Step 4:view log 
389
 Click “日志” button on the right side of the task you will go to the task log list ,you will see the schedule history records of the task and the schedule detail info,execution info and execution params.If you click the “执行日志” button on the right side of the task log record,you will go to log console and view the execute log in the course of task execution.
389
 Click “日志” button on the right side of the task you will go to the task log list ,you will see the schedule history records of the task and the schedule detail info,execution info and execution params.If you click the “执行日志” button on the right side of the task log record,you will go to log console and view the execute log in the course of task execution.
390
 
390
 
391
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_inc8.png "在这里输入图片标题")
391
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_inc8.png "在这里输入图片标题")
392
 
392
 
393
 On the log console,you can view task execution log on the executor immediately after it dump to log file,so you can monitor the task execution process by Rolling way.
393
 On the log console,you can view task execution log on the executor immediately after it dump to log file,so you can monitor the task execution process by Rolling way.
394
 
394
 
395
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_eYrv.png "在这里输入图片标题")
395
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_eYrv.png "在这里输入图片标题")
396
 
396
 
397
 ## 3. Task details
397
 ## 3. Task details
398
 
398
 
440
     - 3, add  “@JobHandler(value=" customize jobhandler name")” annotation,the value stand for JobHandler name,it will be used as JobHandler property when create a new task in the schedule center.
440
     - 3, add  “@JobHandler(value=" customize jobhandler name")” annotation,the value stand for JobHandler name,it will be used as JobHandler property when create a new task in the schedule center.
441
     (go and see DemoJobHandler in the xxl-job-executor-example project, as shown below)
441
     (go and see DemoJobHandler in the xxl-job-executor-example project, as shown below)
442
 
442
 
443
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_oLlM.png "在这里输入图片标题")
443
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_oLlM.png "在这里输入图片标题")
444
 
444
 
445
 #### Step 2:create task in schedule center
445
 #### Step 2:create task in schedule center
446
 If you want learn more about configure item please go and sedd “Description of configuration item”,select  "BEAN模式" as run mode,property JobHandler please fill in the value defined by @JobHande.
446
 If you want learn more about configure item please go and sedd “Description of configuration item”,select  "BEAN模式" as run mode,property JobHandler please fill in the value defined by @JobHande.
447
 
447
 
448
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_ZAsz.png "在这里输入图片标题")
448
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_ZAsz.png "在这里输入图片标题")
449
 
449
 
450
 ### 3.2 GLUE模式(Java)
450
 ### 3.2 GLUE模式(Java)
451
 Task source code is maintained in the schedule center and can be updated by Web IDE online, it will be compiled and effective real-time,didn’t need to assign JobHandler,develop flow shown as below:
451
 Task source code is maintained in the schedule center and can be updated by Web IDE online, it will be compiled and effective real-time,didn’t need to assign JobHandler,develop flow shown as below:
453
 #### Step 1:create task in schedule center
453
 #### Step 1:create task in schedule center
454
 If you want learn more about configure item please go and sedd “Description of configuration item”,select "GLUE模式(Java)" as run mode.
454
 If you want learn more about configure item please go and sedd “Description of configuration item”,select "GLUE模式(Java)" as run mode.
455
 
455
 
456
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_tJOq.png "在这里输入图片标题")
456
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_tJOq.png "在这里输入图片标题")
457
 
457
 
458
 #### Step 2:develop task source code
458
 #### Step 2:develop task source code
459
 Select the task record and click “GLUE” button on the righe of it,it will go to GLUE task’s WEB IDE page,on this page yo can edit you task code(also can edit in other IDE tools,copy and paste into this page).
459
 Select the task record and click “GLUE” button on the righe of it,it will go to GLUE task’s WEB IDE page,on this page yo can edit you task code(also can edit in other IDE tools,copy and paste into this page).
460
 
460
 
461
 Version backtrack(support 30 versions while backtrack):on the WEB IDE page of GLUE task,on upper right corner drop down box please select “版本回溯”,it will display GLUE updated history,select the version you want it will display the source code of this version,it will backtrace the version while click save button. 
461
 Version backtrack(support 30 versions while backtrack):on the WEB IDE page of GLUE task,on upper right corner drop down box please select “版本回溯”,it will display GLUE updated history,select the version you want it will display the source code of this version,it will backtrace the version while click save button. 
462
 
462
 
463
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_dNUJ.png "在这里输入图片标题")
463
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_dNUJ.png "在这里输入图片标题")
464
 
464
 
465
 ### 3.3 GLUE模式(Shell)
465
 ### 3.3 GLUE模式(Shell)
466
 
466
 
472
 
472
 
473
 Actually it is a shell script fragment.
473
 Actually it is a shell script fragment.
474
 
474
 
475
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_iUw0.png "在这里输入图片标题")
475
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_iUw0.png "在这里输入图片标题")
476
 
476
 
477
 ### 3.4 GLUE模式(Python)
477
 ### 3.4 GLUE模式(Python)
478
 
478
 
484
 
484
 
485
 Actually it is a python script fragment.
485
 Actually it is a python script fragment.
486
 
486
 
487
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_BPLG.png "在这里输入图片标题")
487
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_BPLG.png "在这里输入图片标题")
488
 
488
 
489
 
489
 
490
 ## 4. Task Management
490
 ## 4. Task Management
491
 ### 4.0 configure executor
491
 ### 4.0 configure executor
492
 click"执行器管理" on the left menu,it will go to the page as shown below:
492
 click"执行器管理" on the left menu,it will go to the page as shown below:
493
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Hr2T.png "在这里输入图片标题")
493
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Hr2T.png "在这里输入图片标题")
494
 
494
 
495
     1,"调度中心OnLine”:display schedule center machine list,when task is scheduled it will callback schedule center for notify the execution result in failover mode, so that it can avoid a single point scheduler;
495
     1,"调度中心OnLine”:display schedule center machine list,when task is scheduled it will callback schedule center for notify the execution result in failover mode, so that it can avoid a single point scheduler;
496
     2,"执行器列表" :display all nodes under this executor group.
496
     2,"执行器列表" :display all nodes under this executor group.
497
 
497
 
498
 If you want to create a new executor,please click "+新增执行器" button: 
498
 If you want to create a new executor,please click "+新增执行器" button: 
499
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_V3vF.png "在这里输入图片标题")
499
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_V3vF.png "在这里输入图片标题")
500
 
500
 
501
 ### Description of executor attributes
501
 ### Description of executor attributes
502
 
502
 
523
 ### 4.4 pause/recover task
523
 ### 4.4 pause/recover task
524
 You can pause or recover task but it just fit to follow up schedule trigger and won’t affect scheduled tasks,if you want to stop tasks which has been triggered,please go and see “4.8 stop the running task”
524
 You can pause or recover task but it just fit to follow up schedule trigger and won’t affect scheduled tasks,if you want to stop tasks which has been triggered,please go and see “4.8 stop the running task”
525
 
525
 
526
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_ZAhX.png "在这里输入图片标题")
526
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_ZAhX.png "在这里输入图片标题")
527
 
527
 
528
 ### 4.5 manually trigger
528
 ### 4.5 manually trigger
529
 You can trigger a task manually by Click “执行”button,it won’t affect original scheduling rules.
529
 You can trigger a task manually by Click “执行”button,it won’t affect original scheduling rules.
530
 
530
 
531
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Z5wp.png "在这里输入图片标题")
531
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Z5wp.png "在这里输入图片标题")
532
 
532
 
533
 ### 4.6 view schedule log
533
 ### 4.6 view schedule log
534
 You can view task’s history schedule log by click “日志” button,on the history schedule log list page you can view every time of task’s schedule result,execution result and so on,click “执行日志” button can view the task’s full execute log.
534
 You can view task’s history schedule log by click “日志” button,on the history schedule log list page you can view every time of task’s schedule result,execution result and so on,click “执行日志” button can view the task’s full execute log.
535
 
535
 
536
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_9235.png "在这里输入图片标题")
536
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_9235.png "在这里输入图片标题")
537
 
537
 
538
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_inc8.png "在这里输入图片标题")
538
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_inc8.png "在这里输入图片标题")
539
 
539
 
540
     调度时间:schedule center trigger time when schedule and send execution signal to executor;
540
     调度时间:schedule center trigger time when schedule and send execution signal to executor;
541
     调度结果:schedule center trigger task’s result, 200 represent success,500 or other number stands for fail;
541
     调度结果:schedule center trigger task’s result, 200 represent success,500 or other number stands for fail;
553
 ### 4.7 view execution log
553
 ### 4.7 view execution log
554
 Click the “执行日志” button on the right side of the record,you can go to the execution log page,you can view the full execution log of the logic business code, shown as below:
554
 Click the “执行日志” button on the right side of the record,you can go to the execution log page,you can view the full execution log of the logic business code, shown as below:
555
 
555
 
556
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_tvGI.png "在这里输入图片标题")
556
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_tvGI.png "在这里输入图片标题")
557
 
557
 
558
 ### 4.8 stop running tasks
558
 ### 4.8 stop running tasks
559
 Just fit to running tasks,on the task log list page,click “终止任务” button on the right side of the record, it will send stop command to the executor where the task was executed,finally the task was killed and the task instance execute queue of this task will be clear.
559
 Just fit to running tasks,on the task log list page,click “终止任务” button on the right side of the record, it will send stop command to the executor where the task was executed,finally the task was killed and the task instance execute queue of this task will be clear.
560
 
560
 
561
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_hIci.png "在这里输入图片标题")
561
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_hIci.png "在这里输入图片标题")
562
 
562
 
563
 It is implemented by interrupt execute thread, it will trigger InterruptedException.so if JobHandler catch this execuption and handle this exception this function is unavailable.
563
 It is implemented by interrupt execute thread, it will trigger InterruptedException.so if JobHandler catch this execuption and handle this exception this function is unavailable.
564
 
564
 
579
 
579
 
580
 ### 4.9 delete execution log
580
 ### 4.9 delete execution log
581
 On the task log list page, after you select executor and task, you can click"删除" button on the right side and it will pop-up "日志清理" window,on the pop-up window you can choose different log delete policy,choose the policy you want to execute and click "确定" button it will delele relative logs:
581
 On the task log list page, after you select executor and task, you can click"删除" button on the right side and it will pop-up "日志清理" window,on the pop-up window you can choose different log delete policy,choose the policy you want to execute and click "确定" button it will delele relative logs:
582
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Ypik.png "在这里输入图片标题")
582
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Ypik.png "在这里输入图片标题")
583
 
583
 
584
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_EB65.png "在这里输入图片标题")
584
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_EB65.png "在这里输入图片标题")
585
 
585
 
586
 ### 4.10 delete task
586
 ### 4.10 delete task
587
 Click the delete button on the right side of the task,the task will be deteted.
587
 Click the delete button on the right side of the task,the task will be deteted.
588
 
588
 
589
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Z9Qr.png "在这里输入图片标题")
589
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Z9Qr.png "在这里输入图片标题")
590
 
590
 
591
 ## 5. Overall design
591
 ## 5. Overall design
592
 ### 5.1 Source directory introduction
592
 ### 5.1 Source directory introduction
601
 
601
 
602
 XXL-JOB custom Quartz table structure prefix(XXL_JOB_QRTZ_).
602
 XXL-JOB custom Quartz table structure prefix(XXL_JOB_QRTZ_).
603
 
603
 
604
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_bNwm.png "在这里输入图片标题")
604
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_bNwm.png "在这里输入图片标题")
605
 
605
 
606
 The added tables as shown below:
606
 The added tables as shown below:
607
     - XXL_JOB_QRTZ_TRIGGER_GROUP:executor basic table, maintain the info about the executor;
607
     - XXL_JOB_QRTZ_TRIGGER_GROUP:executor basic table, maintain the info about the executor;
630
 
630
 
631
 #### 5.3.3 Architecture diagram
631
 #### 5.3.3 Architecture diagram
632
 
632
 
633
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Qohm.png "在这里输入图片标题")
633
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Qohm.png "在这里输入图片标题")
634
 
634
 
635
 ### 5.4 Schedule module analysis
635
 ### 5.4 Schedule module analysis
636
 #### 5.4.1 Disadvantage of quartz
636
 #### 5.4.1 Disadvantage of quartz
713
 When "路由策略" select "故障转移(FAILOVER)",it will send heart beat check request in order while schedule center start schedule request.  The first alive checked executor node will be selected and send schedule request to it.
713
 When "路由策略" select "故障转移(FAILOVER)",it will send heart beat check request in order while schedule center start schedule request.  The first alive checked executor node will be selected and send schedule request to it.
714
 
714
 
715
 “调度备注” can be viewed on the monitor page when schedule success. As shown below: 
715
 “调度备注” can be viewed on the monitor page when schedule success. As shown below: 
716
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_jrdI.png "在这里输入图片标题")
716
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_jrdI.png "在这里输入图片标题")
717
 
717
 
718
 “调度备注” will display local schedule route path、executor’s "注册方式"、"地址列表" and task’s "路由策略"。Under "故障转移(FAILOVER)" policy, schedule center take first address to do heartbeat detection, heat beat fail will automatically skip, the second address heart beat fail…… until the third address “127.0.0.1:9999” heart beat success, it was selected as target executor, then send schedule request to target executor, now the schedule process is end wait for the executor’s callback execution result.
718
 “调度备注” will display local schedule route path、executor’s "注册方式"、"地址列表" and task’s "路由策略"。Under "故障转移(FAILOVER)" policy, schedule center take first address to do heartbeat detection, heat beat fail will automatically skip, the second address heart beat fail…… until the third address “127.0.0.1:9999” heart beat success, it was selected as target executor, then send schedule request to target executor, now the schedule process is end wait for the executor’s callback execution result.
719
 
719
 
743
 
743
 
744
 On the task log page ,you can see matched child task and triggered child task’s log info when you “查看”button of “执行备注”,otherwise the child task didin’t execute, as shown beleow:
744
 On the task log page ,you can see matched child task and triggered child task’s log info when you “查看”button of “执行备注”,otherwise the child task didin’t execute, as shown beleow:
745
 
745
 
746
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Wb2o.png "在这里输入图片标题")
746
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Wb2o.png "在这里输入图片标题")
747
 
747
 
748
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_jOAU.png "在这里输入图片标题")
748
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_jOAU.png "在这里输入图片标题")
749
 
749
 
750
 ### 5.5 Task "run mode" analysis
750
 ### 5.5 Task "run mode" analysis
751
 #### 5.5.1 "Bean模式" task
751
 #### 5.5.1 "Bean模式" task

+ 30 - 30
doc/XXL-JOB官方文档.md Просмотреть файл

456
 
456
 
457
 默认登录账号 "admin/123456", 登录后运行界面如下图所示。
457
 默认登录账号 "admin/123456", 登录后运行界面如下图所示。
458
 
458
 
459
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_6yC0.png "在这里输入图片标题")
459
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_6yC0.png "在这里输入图片标题")
460
 
460
 
461
 至此“调度中心”项目已经部署成功。
461
 至此“调度中心”项目已经部署成功。
462
 
462
 
582
 #### 步骤一:新建任务:
582
 #### 步骤一:新建任务:
583
 登录调度中心,点击下图所示“新建任务”按钮,新建示例任务。然后,参考下面截图中任务的参数配置,点击保存。
583
 登录调度中心,点击下图所示“新建任务”按钮,新建示例任务。然后,参考下面截图中任务的参数配置,点击保存。
584
 
584
 
585
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_o8HQ.png "在这里输入图片标题")
585
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_o8HQ.png "在这里输入图片标题")
586
 
586
 
587
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_ZAsz.png "在这里输入图片标题")
587
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_ZAsz.png "在这里输入图片标题")
588
 
588
 
589
 
589
 
590
 #### 步骤二:“GLUE模式(Java)” 任务开发:
590
 #### 步骤二:“GLUE模式(Java)” 任务开发:
591
 请点击任务右侧 “GLUE” 按钮,进入 “GLUE编辑器开发界面” ,见下图。“GLUE模式(Java)” 运行模式的任务默认已经初始化了示例任务代码,即打印Hello World。
591
 请点击任务右侧 “GLUE” 按钮,进入 “GLUE编辑器开发界面” ,见下图。“GLUE模式(Java)” 运行模式的任务默认已经初始化了示例任务代码,即打印Hello World。
592
 ( “GLUE模式(Java)” 运行模式的任务实际上是一段继承自IJobHandler的Java类代码,它在执行器项目中运行,可使用@Resource/@Autowire注入执行器里中的其他服务,详细介绍请查看第三章节)
592
 ( “GLUE模式(Java)” 运行模式的任务实际上是一段继承自IJobHandler的Java类代码,它在执行器项目中运行,可使用@Resource/@Autowire注入执行器里中的其他服务,详细介绍请查看第三章节)
593
 
593
 
594
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Fgql.png "在这里输入图片标题")
594
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Fgql.png "在这里输入图片标题")
595
 
595
 
596
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_dNUJ.png "在这里输入图片标题")
596
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_dNUJ.png "在这里输入图片标题")
597
 
597
 
598
 #### 步骤三:触发执行:
598
 #### 步骤三:触发执行:
599
 请点击任务右侧 “执行” 按钮,可手动触发一次任务执行(通常情况下,通过配置Cron表达式进行任务调度出发)。
599
 请点击任务右侧 “执行” 按钮,可手动触发一次任务执行(通常情况下,通过配置Cron表达式进行任务调度出发)。
602
 请点击任务右侧 “日志” 按钮,可前往任务日志界面查看任务日志。
602
 请点击任务右侧 “日志” 按钮,可前往任务日志界面查看任务日志。
603
 在任务日志界面中,可查看该任务的历史调度记录以及每一次调度的任务调度信息、执行参数和执行信息。运行中的任务点击右侧的“执行日志”按钮,可进入日志控制台查看实时执行日志。
603
 在任务日志界面中,可查看该任务的历史调度记录以及每一次调度的任务调度信息、执行参数和执行信息。运行中的任务点击右侧的“执行日志”按钮,可进入日志控制台查看实时执行日志。
604
 
604
 
605
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_inc8.png "在这里输入图片标题")
605
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_inc8.png "在这里输入图片标题")
606
 
606
 
607
 在日志控制台,可以Rolling方式实时查看任务在执行器一侧运行输出的日志信息,实时监控任务进度;
607
 在日志控制台,可以Rolling方式实时查看任务在执行器一侧运行输出的日志信息,实时监控任务进度;
608
 
608
 
609
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_eYrv.png "在这里输入图片标题")
609
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_eYrv.png "在这里输入图片标题")
610
 
610
 
611
 ## 三、任务详解
611
 ## 三、任务详解
612
 
612
 
658
      - 4、执行日志:需要通过 "XxlJobLogger.log" 打印执行日志;
658
      - 4、执行日志:需要通过 "XxlJobLogger.log" 打印执行日志;
659
     (可参考Sample示例执行器中的DemoJobHandler,见下图)
659
     (可参考Sample示例执行器中的DemoJobHandler,见下图)
660
 
660
 
661
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_oLlM.png "在这里输入图片标题")
661
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_oLlM.png "在这里输入图片标题")
662
 
662
 
663
 #### 步骤二:调度中心,新建调度任务
663
 #### 步骤二:调度中心,新建调度任务
664
 参考上文“配置属性详细说明”对新建的任务进行参数配置,运行模式选中 "BEAN模式",JobHandler属性填写任务注解“@JobHandler”中定义的值;
664
 参考上文“配置属性详细说明”对新建的任务进行参数配置,运行模式选中 "BEAN模式",JobHandler属性填写任务注解“@JobHandler”中定义的值;
665
 
665
 
666
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_ZAsz.png "在这里输入图片标题")
666
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_ZAsz.png "在这里输入图片标题")
667
 
667
 
668
 #### 原生内置Bean模式任务
668
 #### 原生内置Bean模式任务
669
 为方便用户参考与快速实用,示例执行器内原生提供多个Bean模式任务Handler,可以直接配置实用,如下:
669
 为方便用户参考与快速实用,示例执行器内原生提供多个Bean模式任务Handler,可以直接配置实用,如下:
680
 #### 步骤一:调度中心,新建调度任务:
680
 #### 步骤一:调度中心,新建调度任务:
681
 参考上文“配置属性详细说明”对新建的任务进行参数配置,运行模式选中 "GLUE模式(Java)";
681
 参考上文“配置属性详细说明”对新建的任务进行参数配置,运行模式选中 "GLUE模式(Java)";
682
 
682
 
683
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_tJOq.png "在这里输入图片标题")
683
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_tJOq.png "在这里输入图片标题")
684
 
684
 
685
 #### 步骤二:开发任务代码:
685
 #### 步骤二:开发任务代码:
686
 选中指定任务,点击该任务右侧“GLUE”按钮,将会前往GLUE任务的Web IDE界面,在该界面支持对任务代码进行开发(也可以在IDE中开发完成后,复制粘贴到编辑中)。
686
 选中指定任务,点击该任务右侧“GLUE”按钮,将会前往GLUE任务的Web IDE界面,在该界面支持对任务代码进行开发(也可以在IDE中开发完成后,复制粘贴到编辑中)。
687
 
687
 
688
 版本回溯功能(支持30个版本的版本回溯):在GLUE任务的Web IDE界面,选择右上角下拉框“版本回溯”,会列出该GLUE的更新历史,选择相应版本即可显示该版本代码,保存后GLUE代码即回退到对应的历史版本;
688
 版本回溯功能(支持30个版本的版本回溯):在GLUE任务的Web IDE界面,选择右上角下拉框“版本回溯”,会列出该GLUE的更新历史,选择相应版本即可显示该版本代码,保存后GLUE代码即回退到对应的历史版本;
689
 
689
 
690
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_dNUJ.png "在这里输入图片标题")
690
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_dNUJ.png "在这里输入图片标题")
691
 
691
 
692
 ### 3.3 GLUE模式(Shell)
692
 ### 3.3 GLUE模式(Shell)
693
 
693
 
699
 
699
 
700
 该模式的任务实际上是一段 "shell" 脚本;
700
 该模式的任务实际上是一段 "shell" 脚本;
701
 
701
 
702
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_iUw0.png "在这里输入图片标题")
702
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_iUw0.png "在这里输入图片标题")
703
 
703
 
704
 ### 3.4 GLUE模式(Python)
704
 ### 3.4 GLUE模式(Python)
705
 
705
 
711
 
711
 
712
 该模式的任务实际上是一段 "python" 脚本;
712
 该模式的任务实际上是一段 "python" 脚本;
713
 
713
 
714
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_BPLG.png "在这里输入图片标题")
714
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_BPLG.png "在这里输入图片标题")
715
 
715
 
716
 ### 3.5 GLUE模式(NodeJS)
716
 ### 3.5 GLUE模式(NodeJS)
717
 
717
 
735
 
735
 
736
 ### 4.1 配置执行器
736
 ### 4.1 配置执行器
737
 点击进入"执行器管理"界面, 如下图:
737
 点击进入"执行器管理"界面, 如下图:
738
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Hr2T.png "在这里输入图片标题")
738
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Hr2T.png "在这里输入图片标题")
739
 
739
 
740
     1、"调度中心OnLine:"右侧显示在线的"调度中心"列表, 任务执行结束后, 将会以failover的模式进行回调调度中心通知执行结果, 避免回调的单点风险;
740
     1、"调度中心OnLine:"右侧显示在线的"调度中心"列表, 任务执行结束后, 将会以failover的模式进行回调调度中心通知执行结果, 避免回调的单点风险;
741
     2、"执行器列表" 中显示在线的执行器列表, 可通过"OnLine 机器"查看对应执行器的集群机器。
741
     2、"执行器列表" 中显示在线的执行器列表, 可通过"OnLine 机器"查看对应执行器的集群机器。
742
 
742
 
743
 点击按钮 "+新增执行器" 弹框如下图, 可新增执行器配置:
743
 点击按钮 "+新增执行器" 弹框如下图, 可新增执行器配置:
744
 
744
 
745
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_V3vF.png "在这里输入图片标题")
745
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_V3vF.png "在这里输入图片标题")
746
 
746
 
747
 ### 执行器属性说明
747
 ### 执行器属性说明
748
 
748
 
770
 可对任务进行“启动”和“停止”操作。
770
 可对任务进行“启动”和“停止”操作。
771
 需要注意的是,此处的启动/停止仅针对任务的后续调度触发行为,不会影响到已经触发的调度任务,如需终止已经触发的调度任务,可查看“4.9 终止运行中的任务”
771
 需要注意的是,此处的启动/停止仅针对任务的后续调度触发行为,不会影响到已经触发的调度任务,如需终止已经触发的调度任务,可查看“4.9 终止运行中的任务”
772
 
772
 
773
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_ZAhX.png "在这里输入图片标题")
773
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_ZAhX.png "在这里输入图片标题")
774
 
774
 
775
 ### 4.6 手动触发一次调度
775
 ### 4.6 手动触发一次调度
776
 点击“执行”按钮,可手动触发一次任务调度,不影响原有调度规则。
776
 点击“执行”按钮,可手动触发一次任务调度,不影响原有调度规则。
777
 
777
 
778
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_ZAhX.png "在这里输入图片标题")
778
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_ZAhX.png "在这里输入图片标题")
779
 
779
 
780
 ### 4.7 查看调度日志
780
 ### 4.7 查看调度日志
781
 点击“日志”按钮,可以查看任务历史调度日志。在历史调入日志界面可查看每次任务调度的调度结果、执行结果等,点击“执行日志”按钮可查看执行器完整日志。
781
 点击“日志”按钮,可以查看任务历史调度日志。在历史调入日志界面可查看每次任务调度的调度结果、执行结果等,点击“执行日志”按钮可查看执行器完整日志。
782
 
782
 
783
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_ZAhX.png "在这里输入图片标题")
783
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_ZAhX.png "在这里输入图片标题")
784
 
784
 
785
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_UDSo.png "在这里输入图片标题")
785
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_UDSo.png "在这里输入图片标题")
786
 
786
 
787
     调度时间:"调度中心"触发本次调度并向"执行器"发送任务执行信号的时间;
787
     调度时间:"调度中心"触发本次调度并向"执行器"发送任务执行信号的时间;
788
     调度结果:"调度中心"触发本次调度的结果,200表示成功,500或其他表示失败;
788
     调度结果:"调度中心"触发本次调度的结果,200表示成功,500或其他表示失败;
800
 ### 4.8 查看执行日志
800
 ### 4.8 查看执行日志
801
 点击执行日志右侧的 “执行日志” 按钮,可跳转至执行日志界面,可以查看业务代码中打印的完整日志,如下图;
801
 点击执行日志右侧的 “执行日志” 按钮,可跳转至执行日志界面,可以查看业务代码中打印的完整日志,如下图;
802
 
802
 
803
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_tvGI.png "在这里输入图片标题")
803
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_tvGI.png "在这里输入图片标题")
804
 
804
 
805
 ### 4.9 终止运行中的任务
805
 ### 4.9 终止运行中的任务
806
 仅针对执行中的任务。
806
 仅针对执行中的任务。
807
 在任务日志界面,点击右侧的“终止任务”按钮,将会向本次任务对应的执行器发送任务终止请求,将会终止掉本次任务,同时会清空掉整个任务执行队列。
807
 在任务日志界面,点击右侧的“终止任务”按钮,将会向本次任务对应的执行器发送任务终止请求,将会终止掉本次任务,同时会清空掉整个任务执行队列。
808
 
808
 
809
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_hIci.png "在这里输入图片标题")
809
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_hIci.png "在这里输入图片标题")
810
 
810
 
811
 任务终止时通过 "interrupt" 执行线程的方式实现, 将会触发 "InterruptedException" 异常。因此如果JobHandler内部catch到了该异常并消化掉的话, 任务终止功能将不可用。
811
 任务终止时通过 "interrupt" 执行线程的方式实现, 将会触发 "InterruptedException" 异常。因此如果JobHandler内部catch到了该异常并消化掉的话, 任务终止功能将不可用。
812
 
812
 
829
 
829
 
830
 ### 4.10 删除执行日志
830
 ### 4.10 删除执行日志
831
 在任务日志界面,选中执行器和任务之后,点击右侧的"删除"按钮将会出现"日志清理"弹框,弹框中支持选择不同类型的日志清理策略,选中后点击"确定"按钮即可进行日志清理操作;
831
 在任务日志界面,选中执行器和任务之后,点击右侧的"删除"按钮将会出现"日志清理"弹框,弹框中支持选择不同类型的日志清理策略,选中后点击"确定"按钮即可进行日志清理操作;
832
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Ypik.png "在这里输入图片标题")
832
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Ypik.png "在这里输入图片标题")
833
 
833
 
834
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_EB65.png "在这里输入图片标题")
834
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_EB65.png "在这里输入图片标题")
835
 
835
 
836
 ### 4.11 删除任务
836
 ### 4.11 删除任务
837
 点击删除按钮,可以删除对应任务。
837
 点击删除按钮,可以删除对应任务。
838
 
838
 
839
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Z9Qr.png "在这里输入图片标题")
839
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Z9Qr.png "在这里输入图片标题")
840
 
840
 
841
 ### 4.12 用户管理
841
 ### 4.12 用户管理
842
 进入 "用户管理" 界面,可查看和管理用户信息;
842
 进入 "用户管理" 界面,可查看和管理用户信息;
845
 - 管理员:拥有全量权限,支持在线管理用户信息,为用户分配权限,权限分配粒度为执行器;
845
 - 管理员:拥有全量权限,支持在线管理用户信息,为用户分配权限,权限分配粒度为执行器;
846
 - 普通用户:仅拥有被分配权限的执行器,及相关任务的操作权限;
846
 - 普通用户:仅拥有被分配权限的执行器,及相关任务的操作权限;
847
 
847
 
848
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_1001.png "在这里输入图片标题")
848
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_1001.png "在这里输入图片标题")
849
 
849
 
850
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_1002.png "在这里输入图片标题")
850
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_1002.png "在这里输入图片标题")
851
 
851
 
852
 
852
 
853
 ## 五、总体设计
853
 ## 五、总体设计
888
 
888
 
889
 #### 5.3.3 架构图
889
 #### 5.3.3 架构图
890
 
890
 
891
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Qohm.png "在这里输入图片标题")
891
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Qohm.png "在这里输入图片标题")
892
 
892
 
893
 ### 5.4 调度模块剖析
893
 ### 5.4 调度模块剖析
894
 #### 5.4.1 quartz的不足
894
 #### 5.4.1 quartz的不足
942
 当任务"路由策略"选择"故障转移(FAILOVER)"时,当调度中心每次发起调度请求时,会按照顺序对执行器发出心跳检测请求,第一个检测为存活状态的执行器将会被选定并发送调度请求。
942
 当任务"路由策略"选择"故障转移(FAILOVER)"时,当调度中心每次发起调度请求时,会按照顺序对执行器发出心跳检测请求,第一个检测为存活状态的执行器将会被选定并发送调度请求。
943
 
943
 
944
 调度成功后,可在日志监控界面查看“调度备注”,如下;
944
 调度成功后,可在日志监控界面查看“调度备注”,如下;
945
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_jrdI.png "在这里输入图片标题")
945
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_jrdI.png "在这里输入图片标题")
946
 
946
 
947
 “调度备注”可以看出本地调度运行轨迹,执行器的"注册方式"、"地址列表"和任务的"路由策略"。"故障转移(FAILOVER)"路由策略下,调度中心首先对第一个地址进行心跳检测,心跳失败因此自动跳过,第二个依然心跳检测失败……
947
 “调度备注”可以看出本地调度运行轨迹,执行器的"注册方式"、"地址列表"和任务的"路由策略"。"故障转移(FAILOVER)"路由策略下,调度中心首先对第一个地址进行心跳检测,心跳失败因此自动跳过,第二个依然心跳检测失败……
948
 直至心跳检测第三个地址“127.0.0.1:9999”成功,选定为“目标执行器”;然后对“目标执行器”发送调度请求,调度流程结束,等待执行器回调执行结果。
948
 直至心跳检测第三个地址“127.0.0.1:9999”成功,选定为“目标执行器”;然后对“目标执行器”发送调度请求,调度流程结束,等待执行器回调执行结果。
973
 
973
 
974
 在任务日志界面,点击任务的“执行备注”的“查看”按钮,可以看到匹配子任务以及触发子任务执行的日志信息,如无信息则表示未触发子任务执行,可参考下图。
974
 在任务日志界面,点击任务的“执行备注”的“查看”按钮,可以看到匹配子任务以及触发子任务执行的日志信息,如无信息则表示未触发子任务执行,可参考下图。
975
 
975
 
976
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_Wb2o.png "在这里输入图片标题")
976
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_Wb2o.png "在这里输入图片标题")
977
 
977
 
978
-![输入图片说明](https://raw.githubusercontent.com/xuxueli/xxl-job/master/doc/images/img_jOAU.png "在这里输入图片标题")
978
+![输入图片说明](https://www.xuxueli.com/xxl-job/data/images/img_jOAU.png "在这里输入图片标题")
979
 
979
 
980
 #### 5.4.11  全异步化 & 轻量级
980
 #### 5.4.11  全异步化 & 轻量级
981
 
981