parent
8c58949e5a
commit
673a4f5604
|
@ -22,6 +22,18 @@ public enum DisposeCapacityType implements BaseEnum {
|
||||||
* The Detective.
|
* The Detective.
|
||||||
*/
|
*/
|
||||||
DETECTIVE(3, "检测能力"),
|
DETECTIVE(3, "检测能力"),
|
||||||
|
/**
|
||||||
|
* The WAF_BLOCK.
|
||||||
|
*/
|
||||||
|
WAF_BLOCK(4, "WAF封堵"),
|
||||||
|
/**
|
||||||
|
* DNS_REFRESH.
|
||||||
|
*/
|
||||||
|
DNS_REFRESH(5, "域名刷新服务器"),
|
||||||
|
/**
|
||||||
|
* MANUAL_HANDLING.
|
||||||
|
*/
|
||||||
|
MANUAL_HANDLING(6, "人工处理"),
|
||||||
;
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -33,10 +33,10 @@ public class DeviceManagerTask {
|
||||||
public void updateDeviceLinkStatusTask() {
|
public void updateDeviceLinkStatusTask() {
|
||||||
disposeAbilityRouterService.getAllAbilityDevices().forEach(v -> {
|
disposeAbilityRouterService.getAllAbilityDevices().forEach(v -> {
|
||||||
v.setLinkStatus(v.getDb().getDeviceLinkStatus());
|
v.setLinkStatus(v.getDb().getDeviceLinkStatus());
|
||||||
log.debug("{}{} get link status {}", v.getDev().getIpAddr(),
|
log.debug("{}{} {} get link status {}", v.getDev().getIpAddr(),
|
||||||
((v.getDev().getIpPort() == null || v.getDev().getIpPort().length() == 0) ? "" :
|
((v.getDev().getIpPort() == null || v.getDev().getIpPort().length() == 0) ? "" :
|
||||||
":" + v.getDev().getIpPort()),
|
":" + v.getDev().getIpPort()), v.getDev().getDeviceType(),
|
||||||
v.getLinkStatus());
|
v.getLinkStatus());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,10 +53,10 @@ public class DeviceManagerTask {
|
||||||
v.setFirewareInfo(ret.getSecondParam());
|
v.setFirewareInfo(ret.getSecondParam());
|
||||||
}
|
}
|
||||||
|
|
||||||
log.debug("{}{} get fireware status {}", v.getDev().getIpAddr(),
|
log.debug("{}{} {} get fireware status {}", v.getDev().getIpAddr(),
|
||||||
((v.getDev().getIpPort() == null || v.getDev().getIpPort().length() == 0) ? "" :
|
((v.getDev().getIpPort() == null || v.getDev().getIpPort().length() == 0) ? "" :
|
||||||
":" + v.getDev().getIpPort()),
|
":" + v.getDev().getIpPort()), v.getDev().getDeviceType(),
|
||||||
ret.getFirstParam());
|
ret.getFirstParam());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue