| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(fixedRate = 30 * 1000) |
| | | @Scheduled(fixedRate = 20 * 1000) |
| | | public void checkSystemStatus() { |
| | | try { |
| | | JSONObject jsonObject = new JSONObject(); |
| | |
| | | } |
| | | } |
| | | |
| | | @Scheduled(fixedRate = 60 * 1000) |
| | | @Scheduled(fixedRate = 40 * 1000) |
| | | public void countSystemStatus() { |
| | | // noinspection AlibabaRemoveCommentedCode |
| | | try { |
| | |
| | | jsonObject.put("resUseCount", scheduleService.countResStatus()); |
| | | |
| | | // 用户登录状态 sys_login |
| | | // jsonObject.put("userLoginCount", scheduleService.userLoginCount()); |
| | | jsonObject.put("userLoginCount", scheduleService.userLoginCount()); |
| | | |
| | | // 资源操作状态 sys_operate |
| | | // jsonObject.put("operateCount", scheduleService.operateCount()); |
| | | jsonObject.put("operateCount", scheduleService.operateCount()); |
| | | |
| | | // 资源调用状态 |
| | | |