From d41f14d2986b46da9dd7742f6df63d9725cd29f3 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 29 十月 2024 17:08:36 +0800 Subject: [PATCH] 数据采集 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java index 26eed3f..9770ce1 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/job/task/PointCollectTaskNet60.java @@ -3,7 +3,9 @@ import com.iailab.module.data.point.collection.PointCollector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; + import javax.annotation.Resource; + import org.springframework.stereotype.Component; import java.time.LocalDateTime; @@ -19,15 +21,15 @@ */ @Component("pointCollectTaskNet60") public class PointCollectTaskNet60 implements ITask { - private Logger logger = LoggerFactory.getLogger(getClass()); + private final Logger logger = LoggerFactory.getLogger(getClass()); - private final String NET = "NET60"; + private static final String NET = "1min"; @Resource private PointCollector pointCollector; @Override - public void run(String params){ + public void run(String params) { // 0 0/1 * * * ? logger.debug("CollectTaskNet60定时任务正在执行,参数为:{}", params); try { -- Gitblit v1.9.3