From 45fd3d846e553e9049adce93581a48b2f4184c9d Mon Sep 17 00:00:00 2001 From: shiming-stars-lk <1031900093@qq.com> Date: Fri, 15 Jul 2022 19:53:09 +0800 Subject: [PATCH] Hystrix thread pool monitoring optimization --- ...n.java => ThreadPoolAdapterScheduleAutoConfiguration.java} | 2 +- .../src/main/resources/META-INF/spring.factories | 2 +- .../adapter/hystrix/HystrixAdapterAutoConfiguration.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename hippo4j-adapter/hippo4j-adapter-base/src/main/java/cn/hippo4j/adapter/base/{ThreadPoolAdapterExtraAutoConfiguration.java => ThreadPoolAdapterScheduleAutoConfiguration.java} (95%) diff --git a/hippo4j-adapter/hippo4j-adapter-base/src/main/java/cn/hippo4j/adapter/base/ThreadPoolAdapterExtraAutoConfiguration.java b/hippo4j-adapter/hippo4j-adapter-base/src/main/java/cn/hippo4j/adapter/base/ThreadPoolAdapterScheduleAutoConfiguration.java similarity index 95% rename from hippo4j-adapter/hippo4j-adapter-base/src/main/java/cn/hippo4j/adapter/base/ThreadPoolAdapterExtraAutoConfiguration.java rename to hippo4j-adapter/hippo4j-adapter-base/src/main/java/cn/hippo4j/adapter/base/ThreadPoolAdapterScheduleAutoConfiguration.java index 750b4879..1ca62b4d 100644 --- a/hippo4j-adapter/hippo4j-adapter-base/src/main/java/cn/hippo4j/adapter/base/ThreadPoolAdapterExtraAutoConfiguration.java +++ b/hippo4j-adapter/hippo4j-adapter-base/src/main/java/cn/hippo4j/adapter/base/ThreadPoolAdapterScheduleAutoConfiguration.java @@ -24,7 +24,7 @@ import org.springframework.context.annotation.Configuration; * thread pool adapter extra auto configuration. */ @Configuration(proxyBeanMethods = false) -public class ThreadPoolAdapterExtraAutoConfiguration { +public class ThreadPoolAdapterScheduleAutoConfiguration { @Bean public ThreadPoolAdapterScheduler threadPoolAdapterExtra() { diff --git a/hippo4j-adapter/hippo4j-adapter-base/src/main/resources/META-INF/spring.factories b/hippo4j-adapter/hippo4j-adapter-base/src/main/resources/META-INF/spring.factories index 4236a045..ff8c4884 100644 --- a/hippo4j-adapter/hippo4j-adapter-base/src/main/resources/META-INF/spring.factories +++ b/hippo4j-adapter/hippo4j-adapter-base/src/main/resources/META-INF/spring.factories @@ -1 +1 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=cn.hippo4j.adapter.base.ThreadPoolAdapterExtraAutoConfiguration \ No newline at end of file +org.springframework.boot.autoconfigure.EnableAutoConfiguration=cn.hippo4j.adapter.base.ThreadPoolAdapterScheduleAutoConfiguration \ No newline at end of file diff --git a/hippo4j-spring-boot/hippo4j-spring-boot-starter-adapter/hippo4j-spring-boot-starter-adapter-hystrix/src/main/java/cn/hippo4j/springboot/starter/adapter/hystrix/HystrixAdapterAutoConfiguration.java b/hippo4j-spring-boot/hippo4j-spring-boot-starter-adapter/hippo4j-spring-boot-starter-adapter-hystrix/src/main/java/cn/hippo4j/springboot/starter/adapter/hystrix/HystrixAdapterAutoConfiguration.java index 2873f04d..26800ee6 100644 --- a/hippo4j-spring-boot/hippo4j-spring-boot-starter-adapter/hippo4j-spring-boot-starter-adapter-hystrix/src/main/java/cn/hippo4j/springboot/starter/adapter/hystrix/HystrixAdapterAutoConfiguration.java +++ b/hippo4j-spring-boot/hippo4j-spring-boot-starter-adapter/hippo4j-spring-boot-starter-adapter-hystrix/src/main/java/cn/hippo4j/springboot/starter/adapter/hystrix/HystrixAdapterAutoConfiguration.java @@ -18,7 +18,7 @@ package cn.hippo4j.springboot.starter.adapter.hystrix; import cn.hippo4j.adapter.base.ThreadPoolAdapterScheduler; -import cn.hippo4j.adapter.base.ThreadPoolAdapterExtraAutoConfiguration; +import cn.hippo4j.adapter.base.ThreadPoolAdapterScheduleAutoConfiguration; import cn.hippo4j.adapter.hystrix.HystrixThreadPoolAdapter; import cn.hippo4j.common.config.ApplicationContextHolder; import org.springframework.boot.autoconfigure.AutoConfigureAfter; @@ -33,7 +33,7 @@ import org.springframework.context.annotation.Configuration; * @create: 2022-07-15 **/ @Configuration(proxyBeanMethods = false) -@AutoConfigureAfter(ThreadPoolAdapterExtraAutoConfiguration.class) +@AutoConfigureAfter(ThreadPoolAdapterScheduleAutoConfiguration.class) public class HystrixAdapterAutoConfiguration { @Bean