|
|
@ -18,14 +18,13 @@
|
|
|
|
package cn.hippo4j.springboot.starter.monitor.local.log;
|
|
|
|
package cn.hippo4j.springboot.starter.monitor.local.log;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hippo4j.adapter.web.WebThreadPoolService;
|
|
|
|
import cn.hippo4j.adapter.web.WebThreadPoolService;
|
|
|
|
import cn.hippo4j.common.constant.Constants;
|
|
|
|
|
|
|
|
import cn.hippo4j.core.executor.state.ThreadPoolRunStateHandler;
|
|
|
|
import cn.hippo4j.core.executor.state.ThreadPoolRunStateHandler;
|
|
|
|
|
|
|
|
import cn.hippo4j.core.enable.MarkerConfiguration;
|
|
|
|
import cn.hippo4j.monitor.local.log.AdapterThreadPoolLocalLogMonitorHandler;
|
|
|
|
import cn.hippo4j.monitor.local.log.AdapterThreadPoolLocalLogMonitorHandler;
|
|
|
|
import cn.hippo4j.monitor.local.log.DynamicThreadPoolLocalLogMonitorHandler;
|
|
|
|
import cn.hippo4j.monitor.local.log.DynamicThreadPoolLocalLogMonitorHandler;
|
|
|
|
import cn.hippo4j.monitor.local.log.WebThreadPoolLocalLogMonitorHandler;
|
|
|
|
import cn.hippo4j.monitor.local.log.WebThreadPoolLocalLogMonitorHandler;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
|
|
|
@ -33,8 +32,8 @@ import org.springframework.context.annotation.Configuration;
|
|
|
|
* Local log monitor auto configuration.
|
|
|
|
* Local log monitor auto configuration.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
|
|
|
|
@ConditionalOnBean(MarkerConfiguration.Marker.class)
|
|
|
|
@ConditionalOnExpression("'${spring.dynamic.thread-pool.monitor.collect-types:}'.contains('log')")
|
|
|
|
@ConditionalOnExpression("'${spring.dynamic.thread-pool.monitor.collect-types:}'.contains('log')")
|
|
|
|
// @ConditionalOnProperty(prefix = Constants.CONFIGURATION_PROPERTIES_PREFIX, value = "enable", matchIfMissing = true, havingValue = "true")
|
|
|
|
|
|
|
|
public class LocalLogMonitorAutoConfiguration {
|
|
|
|
public class LocalLogMonitorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|