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