Remove Redis and optimize initialization code
This commit is contained in:
parent
d8182a14f2
commit
4346b05d40
@ -25,7 +25,7 @@ public class CacheWatcherUltimate {
|
|||||||
|
|
||||||
private final CacheManager cacheManager;
|
private final CacheManager cacheManager;
|
||||||
|
|
||||||
@Scheduled(fixedDelay = 30000)
|
@Scheduled(fixedDelay = 60000)
|
||||||
public void watchCaches() {
|
public void watchCaches() {
|
||||||
log.info("========== CACHE STATUS BEGIN ==========");
|
log.info("========== CACHE STATUS BEGIN ==========");
|
||||||
for (String name : cacheManager.getCacheNames()) {
|
for (String name : cacheManager.getCacheNames()) {
|
||||||
|
|||||||
@ -113,9 +113,9 @@ public class JmTaskScheduler {
|
|||||||
if (!hasConnectedFlag || Objects.isNull(status)) {
|
if (!hasConnectedFlag || Objects.isNull(status)) {
|
||||||
try {
|
try {
|
||||||
controlInfoService.sendUdp(ip, SarControlTypeEnum.CONNECT);
|
controlInfoService.sendUdp(ip, SarControlTypeEnum.CONNECT);
|
||||||
log.info("尝试连接 SAR IP: {}", ip);
|
log.debug("尝试连接 SAR IP: {}", ip);
|
||||||
} catch (SarConnectException ex) {
|
} catch (SarConnectException ex) {
|
||||||
log.warn("连接雷达[{}]失败:{}", ip, ex.getMessage());
|
log.debug("连接雷达[{}]失败:{}", ip, ex.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -80,7 +80,7 @@ public class SarWaveUdpProcessor extends SarAbstractUdpProcessor<SarWavePacketGr
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void expireProcess(SarWavePacketGroupDTO group) {
|
protected void expireProcess(SarWavePacketGroupDTO group) {
|
||||||
log.warn(getText() + "-移除超时帧: {}", group.getSessionId());
|
log.warn("{}-移除超时帧: {}", getText(), group.getSessionId());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user