Pārlūkot izejas kodu

IOT调用测试

master
林万龙 pirms 3 gadiem
vecāks
revīzija
b599fc5463
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. +4
    -4
      src/main/java/com/telpo/iotgateway/server/IotCommunication.java

+ 4
- 4
src/main/java/com/telpo/iotgateway/server/IotCommunication.java Parādīt failu

@@ -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) {


Notiek ielāde…
Atcelt
Saglabāt