finish webConfig modification verify

pull/776/head
yewei 3 years ago
parent 9744afbeb6
commit d081f77287

@ -57,9 +57,6 @@ public interface ThreadPoolParameter {
*/
Integer getMaxSize();
Integer getCorePoolSize();
Integer getMaximumPoolSize();
/**
* Get queue type
*

@ -32,7 +32,6 @@ import static cn.hippo4j.common.constant.Constants.AVAILABLE_PROCESSORS;
* Common config.
*/
@Configuration
@Import(WebThreadPoolHandlerChoose.class)
public class CommonConfig {
@Bean
@ -54,4 +53,9 @@ public class CommonConfig {
return monitorThreadPool;
}
@Bean
public WebThreadPoolHandlerChoose webThreadPoolHandlerChoose() {
return new WebThreadPoolHandlerChoose();
}
}

@ -49,6 +49,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import static cn.hippo4j.common.constant.Constants.HTTP_EXECUTE_TIMEOUT;
@ -179,7 +180,7 @@ public class ThreadPoolController {
String urlString = StrBuilder.create("http://", each, "/web/update/pool").toString();
HttpUtil.post(urlString, JSONUtil.toJSONString(requestParam), HTTP_EXECUTE_TIMEOUT);
}
}else {
} else {
ConfigModifySaveReqDTO modifySaveReqDTO = BeanUtil.convert(requestParam, ConfigModifySaveReqDTO.class);
modifySaveReqDTO.setModifyUser(UserContext.getUserName());
modifySaveReqDTO.setType(ConfigModifyTypeConstants.WEB_THREAD_POOL);

Loading…
Cancel
Save