REM:
1. 增加浩瀚设备心跳检测功能
This commit is contained in:
HuangXin 2020-06-22 15:33:47 +08:00
parent 5794aaaf3e
commit 345c4abbdb
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,7 @@ package com.dispose.dispose.impl;
import com.dispose.common.DeviceCapacity;
import com.dispose.common.ErrorCode;
import com.dispose.common.Http;
import com.dispose.common.IPAddrType;
import com.dispose.dispose.DisposeEntryManager;
import com.dispose.dispose.po.DeviceInfo;
@ -124,8 +125,10 @@ public class HaoHanImpl implements DisposeEntryManager {
@Override
public boolean getDeviceLinkStatus() {
try {
// 获取防护对象接口调用成功认为设备心跳正常
getAllProtectionObject();
String jsonRequest = "{\"cleanTaskId\":\"-1\"}";
Http.postJson("http://10.88.77.88:18080/DDoSClean/clean/cleanTaskFlow",
null,
jsonRequest);
return true;
} catch (Exception ex) {
log.error(ex.getMessage());