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

This commit is contained in:
xuxueli 2019-05-08 22:12:03 +08:00
parent b202af1334
commit 802e3d3cce
4 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 {
* destroy handler, invoked when JobThread destroy * destroy handler, invoked when JobThread destroy
*/ */
public void destroy() { public void destroy() {
// TODO // do something
} }