...
|
...
|
@@ -27,7 +27,7 @@ public class UpdateHostTimeTask { |
|
|
|
|
|
|
|
|
//定时 清理 mobject_info表中的数据,删除 host_info表中不存在的主机
|
|
|
@Scheduled(fixedRate = 5 * 60 * 1000)
|
|
|
//@Scheduled(fixedRate = 30 * 60 * 1000)
|
|
|
public void doDeleteHosts(){
|
|
|
logger.info("doDeleteHosts ---- delete hosts from mobject_info which not exists in host_info");
|
|
|
List<HostInfo> allHosts = hostInfoMapper.selectAll();//所有的主机
|
...
|
...
|
|