| | |
| | | @Autowired |
| | | private SnmpInfoService snmpInfoService; |
| | | @Autowired |
| | | private OspfInfoService ospfInfoService; |
| | | @Autowired |
| | | private CommonConfig commonConfig; |
| | | @Autowired |
| | | private MailConfig mailConfig; |
| | | @Autowired |
| | | private ServletContext servletContext; |
| | | |
| | | /** |
| | | * 30秒后执行,每2分钟检测一次 |
| | | * 检测ospf状态 |
| | | */ |
| | | @Scheduled(initialDelay = 30000L, fixedRate = 2 * 60 * 1000) |
| | | public void ospfDownCheckTask() { |
| | | logger.info("ospfDownCheckTask------------" + DateUtil.getDateTimeString(new Date())); |
| | | ospfInfoService.getDetailedOspfNeighborInfo(); |
| | | } |
| | | |
| | | /** |
| | | * 5秒后执行,之后每24小时刷新一次 |