Commit 802e3d3c by xuxueli

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

parent b202af13
...@@ -565,7 +565,7 @@ It is implemented by interrupt execute thread, it will trigger InterruptedExcept ...@@ -565,7 +565,7 @@ It is implemented by interrupt execute thread, it will trigger InterruptedExcept
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: 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:
``` ```
try{ try{
// TODO // do something
} catch (Exception e) { } catch (Exception e) {
if (e instanceof InterruptedException) { if (e instanceof InterruptedException) {
throw e; throw e;
......
## 《分布式任务调度平台XXL-JOB》 ## 《分布式任务调度平台XXL-JOB》
...@@ -730,7 +730,7 @@ public XxlJobSpringExecutor xxlJobExecutor() { ...@@ -730,7 +730,7 @@ public XxlJobSpringExecutor xxlJobExecutor() {
因此, 如果遇到上述任务终止不可用的情况, 需要在JobHandler中应该针对 "InterruptedException" 异常进行特殊处理 (向上抛出) , 正确逻辑如下: 因此, 如果遇到上述任务终止不可用的情况, 需要在JobHandler中应该针对 "InterruptedException" 异常进行特殊处理 (向上抛出) , 正确逻辑如下:
``` ```
try{ try{
// TODO // do something
} catch (Exception e) { } catch (Exception e) {
if (e instanceof InterruptedException) { if (e instanceof InterruptedException) {
throw e; throw e;
......
...@@ -192,7 +192,7 @@ public class JobFailMonitorHelper { ...@@ -192,7 +192,7 @@ public class JobFailMonitorHelper {
} }
} }
// TODO, custom alarm strategy, such as sms // do something, custom alarm strategy, such as sms
return alarmResult; return alarmResult;
......
...@@ -32,7 +32,7 @@ public abstract class IJobHandler { ...@@ -32,7 +32,7 @@ public abstract class IJobHandler {
* init handler, invoked when JobThread init * init handler, invoked when JobThread init
*/ */
public void init() { public void init() {
// TODO // do something
} }
...@@ -40,7 +40,7 @@ public abstract class IJobHandler { ...@@ -40,7 +40,7 @@ public abstract class IJobHandler {
* destroy handler, invoked when JobThread destroy * destroy handler, invoked when JobThread destroy
*/ */
public void destroy() { public void destroy() {
// TODO // do something
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment