Browse Source

日志权限控制:仅管理员支持查询全部;普通用户仅支持查询有权限的 jobGroup

xuxueli 6 years ago
parent
commit
802e3d3cce

+ 1 - 1
doc/XXL-JOB-English-Documentation.md View File

565
 So if you want stop the running task ,the JobHandler need to handle InterruptedException separately by throw this exception.the right logic is as shown below:
565
 So if you want stop the running task ,the JobHandler need to handle InterruptedException separately by throw this exception.the right logic is as shown below:
566
 ```
566
 ```
567
 try{
567
 try{
568
-    // TODO
568
+    // do something
569
 } catch (Exception e) {
569
 } catch (Exception e) {
570
     if (e instanceof InterruptedException) {
570
     if (e instanceof InterruptedException) {
571
         throw e;
571
         throw e;

+ 1 - 1
doc/XXL-JOB官方文档.md View File

730
 因此, 如果遇到上述任务终止不可用的情况, 需要在JobHandler中应该针对 "InterruptedException" 异常进行特殊处理 (向上抛出) , 正确逻辑如下:
730
 因此, 如果遇到上述任务终止不可用的情况, 需要在JobHandler中应该针对 "InterruptedException" 异常进行特殊处理 (向上抛出) , 正确逻辑如下:
731
 ```
731
 ```
732
 try{
732
 try{
733
-    // TODO
733
+    // do something
734
 } catch (Exception e) {
734
 } catch (Exception e) {
735
     if (e instanceof InterruptedException) {
735
     if (e instanceof InterruptedException) {
736
         throw e;
736
         throw e;

+ 1 - 1
xxl-job-admin/src/main/java/com/xxl/job/admin/core/thread/JobFailMonitorHelper.java View File

192
 			}
192
 			}
193
 		}
193
 		}
194
 
194
 
195
-		// TODO, custom alarm strategy, such as sms
195
+		// do something, custom alarm strategy, such as sms
196
 
196
 
197
 
197
 
198
 		return alarmResult;
198
 		return alarmResult;

+ 2 - 2
xxl-job-core/src/main/java/com/xxl/job/core/handler/IJobHandler.java View File

32
 	 * init handler, invoked when JobThread init
32
 	 * init handler, invoked when JobThread init
33
 	 */
33
 	 */
34
 	public void init() {
34
 	public void init() {
35
-		// TODO
35
+		// do something
36
 	}
36
 	}
37
 
37
 
38
 
38
 
40
 	 * destroy handler, invoked when JobThread destroy
40
 	 * destroy handler, invoked when JobThread destroy
41
 	 */
41
 	 */
42
 	public void destroy() {
42
 	public void destroy() {
43
-		// TODO
43
+		// do something
44
 	}
44
 	}
45
 
45
 
46
 
46