临时提交

2.7.0
648540858 2024-04-18 17:22:25 +08:00
parent f536123b11
commit 3639d2224d
3 changed files with 17 additions and 1 deletions

View File

@ -202,4 +202,9 @@ public class RedisRpcConfig implements MessageListener {
public void removeCallback(long key) { public void removeCallback(long key) {
callbacks.remove(key); callbacks.remove(key);
} }
public int getCallbackCount(){
return callbacks.size();
}
} }

View File

@ -2,6 +2,7 @@ package com.genersoft.iot.vmp.vmanager.log;
import com.genersoft.iot.vmp.conf.UserSetting; import com.genersoft.iot.vmp.conf.UserSetting;
import com.genersoft.iot.vmp.conf.exception.ControllerException; import com.genersoft.iot.vmp.conf.exception.ControllerException;
import com.genersoft.iot.vmp.conf.redis.RedisRpcConfig;
import com.genersoft.iot.vmp.conf.security.JwtUtils; import com.genersoft.iot.vmp.conf.security.JwtUtils;
import com.genersoft.iot.vmp.service.ILogService; import com.genersoft.iot.vmp.service.ILogService;
import com.genersoft.iot.vmp.storager.dao.dto.LogDto; import com.genersoft.iot.vmp.storager.dao.dto.LogDto;
@ -92,4 +93,14 @@ public class LogController {
logService.clear(); logService.clear();
} }
@Autowired
private RedisRpcConfig redisRpcConfig;
@GetMapping("/test/count")
public Object count() {
return redisRpcConfig.getCallbackCount();
}
} }

View File

@ -2,4 +2,4 @@ spring:
application: application:
name: wvp name: wvp
profiles: profiles:
active: local active: local2