Merge branch 'opengoofy:develop' into develop

pull/1109/head
Kevin 3 years ago committed by GitHub
commit 912820009a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,30 +51,6 @@ public class BootstrapConfigProperties implements BootstrapPropertiesInterface {
*/ */
private MonitorProperties monitor = new MonitorProperties(); private MonitorProperties monitor = new MonitorProperties();
/***
* Latest use {@link MonitorProperties#getEnable()}
*/
@Deprecated
private Boolean collect = Boolean.TRUE;
/**
* Latest use {@link MonitorProperties#getCollectTypes()}
*/
@Deprecated
private String collectType;
/**
* Latest use {@link MonitorProperties#getInitialDelay()}
*/
@Deprecated
private Long initialDelay = 10000L;
/**
* Latest use {@link MonitorProperties#getCollectInterval()}
*/
@Deprecated
private Long collectInterval = 5000L;
/** /**
* Config file type. * Config file type.
*/ */

@ -79,8 +79,8 @@ public class ThreadPoolMonitorExecutor implements ApplicationRunner, DisposableB
// Execute dynamic thread pool monitoring component. // Execute dynamic thread pool monitoring component.
collectScheduledExecutor.scheduleWithFixedDelay( collectScheduledExecutor.scheduleWithFixedDelay(
this::scheduleRunnable, this::scheduleRunnable,
properties.getInitialDelay(), monitor.getInitialDelay(),
properties.getCollectInterval(), monitor.getCollectInterval(),
TimeUnit.MILLISECONDS); TimeUnit.MILLISECONDS);
if (GlobalThreadPoolManage.getThreadPoolNum() > 0) { if (GlobalThreadPoolManage.getThreadPoolNum() > 0) {
log.info("Dynamic thread pool: [{}]. The dynamic thread pool starts data collection and reporting.", getThreadPoolNum()); log.info("Dynamic thread pool: [{}]. The dynamic thread pool starts data collection and reporting.", getThreadPoolNum());

Loading…
Cancel
Save