| | |
| | | @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小时刷新一次 |
| | |
| | | try { |
| | | servletContext.setAttribute("icoUrl", "/tssw/static/logincss/favicon.png"); |
| | | servletContext.setAttribute("logoUrl", "/tssw/static/logincss/logo.png"); |
| | | servletContext.setAttribute("wgName", "WGCLOUD"); |
| | | servletContext.setAttribute("wgShortName", "WGCLOUD"); |
| | | servletContext.setAttribute("wgName", "TSSW"); |
| | | servletContext.setAttribute("wgShortName", "TSSW"); |
| | | //先设置需要显示页面底部版权、网址信息 |
| | | servletContext.setAttribute("copyRight", "true"); |
| | | if (!StringUtils.isEmpty(commonConfig.getIcoUrl())) { |