|
|
@@ -104,16 +104,16 @@ public class IotCommunication { |
|
|
|
request.putQueryParameter("DeviceName", DeviceName); |
|
|
|
|
|
|
|
long startTime = (new DateTime()).getTime(); |
|
|
|
//log.debug("开始IOT请求"); |
|
|
|
log.debug("开始IOT请求"); |
|
|
|
CommonResponse response = client.getCommonResponse(request); |
|
|
|
long endTime = (new DateTime()).getTime(); |
|
|
|
long useTime = endTime-startTime; |
|
|
|
allOfManTime = allOfManTime + useTime; |
|
|
|
//log.debug("结束IOT请求, 用时:" + useTime); |
|
|
|
log.debug("结束IOT请求, 用时:" + useTime); |
|
|
|
Thread.sleep(10); |
|
|
|
if (useTime > 2000) { |
|
|
|
if (useTime > 1000) { |
|
|
|
reqLongCount++; |
|
|
|
log.debug(response.getData()); |
|
|
|
log.debug("RequestID:" + response.getData()); |
|
|
|
} |
|
|
|
reqCount++; |
|
|
|
if (reqCount == 10000) { |
|
|
|