REM:
1. 完善更新缓存时打印的设备信息日志。
2. 添加处置能力类型。
This commit is contained in:
wangyiyun 2021-02-20 18:01:32 +08:00
parent 8c58949e5a
commit 673a4f5604
2 changed files with 20 additions and 8 deletions

View File

@ -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, "人工处理"),
; ;
/** /**

View File

@ -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());
}); });
} }
} }