mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 07:27:49 +08:00
Pre Merge pull request !32 from 阿斌/N/A
This commit is contained in:
commit
a0b79232ac
@ -1,8 +1,10 @@
|
|||||||
package com.genersoft.iot.vmp.conf;
|
package com.genersoft.iot.vmp.conf;
|
||||||
|
|
||||||
|
import com.genersoft.iot.vmp.gb28181.transmit.event.request.impl.message.query.cmd.AlarmQueryMessageHandler;
|
||||||
import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
|
import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
|
||||||
import com.genersoft.iot.vmp.utils.SystemInfoUtils;
|
import com.genersoft.iot.vmp.utils.SystemInfoUtils;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.scheduling.annotation.Scheduled;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@ -13,10 +15,11 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* 获取系统信息写入redis
|
* 获取系统信息写入redis
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
|
||||||
@Component
|
@Component
|
||||||
public class SystemInfoTimerTask {
|
public class SystemInfoTimerTask {
|
||||||
|
|
||||||
|
private Logger logger = LoggerFactory.getLogger(SystemInfoTimerTask.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IRedisCatchStorage redisCatchStorage;
|
private IRedisCatchStorage redisCatchStorage;
|
||||||
|
|
||||||
@ -32,10 +35,10 @@ public class SystemInfoTimerTask {
|
|||||||
List<Map<String, Object>> diskInfo =SystemInfoUtils.getDiskInfo();
|
List<Map<String, Object>> diskInfo =SystemInfoUtils.getDiskInfo();
|
||||||
redisCatchStorage.addDiskInfo(diskInfo);
|
redisCatchStorage.addDiskInfo(diskInfo);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
log.error("[获取系统信息失败] {}", e.getMessage());
|
logger.error("[获取系统信息失败] {}", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user