From 70079bd0772207e88414176f5ca9edb3dd4bd236 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 21 十一月 2024 08:56:05 +0800
Subject: [PATCH] 并发采集

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java
index 32d1c5c..33d3848 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/channel/http/collector/ihdb/HttpCollectorForIhd.java
@@ -52,7 +52,7 @@
 
     private static final String STA_TRUE = "true";
 
-    private static final int GROUP_MAX_COUNT = 100;
+    private static final int GROUP_MAX_COUNT = 60;
 
     private static final int MAX_WAIT = 30;
 
@@ -202,12 +202,10 @@
             CountDownLatch countDownLatch = new CountDownLatch(measurePointsCountGroup.size());
             for (Map.Entry<Integer, List<Object[]>> measurePointsItem : measurePointsCountGroup.entrySet()) {
                 HttpApiEntity httpApi = this.getHttpApi(measurePointsItem.getValue().get(0)[0].toString());
-
                 // 并发
-                Thread.sleep(1000);
+                Thread.sleep(100);
                 threadPool.submit(new Task(httpApi.getUrl(), httpApi.getCode(), result, measurePointsItem.getValue(),
                         collectTime, countDownLatch));
-
                 // 顺序
                 //this.getByHtp(result, measurePointsItem.getValue(), collectTime);
             }

--
Gitblit v1.9.3