finish adapterThreadPoolConfig modification verify

pull/776/head
yewei 3 years ago
parent 48f4033b91
commit 9b6dbfa4cd

@ -73,12 +73,6 @@
<version>${version}</version>
</dependency>
<dependency>
<groupId>cn.hippo4j</groupId>
<artifactId>hippo4j-console</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>

@ -19,7 +19,6 @@ package cn.hippo4j.config.model.biz.threadpool;
import cn.hippo4j.common.model.ThreadPoolParameterInfo;
import cn.hippo4j.config.model.biz.adapter.ThreadPoolAdapterReqDTO;
import cn.hippo4j.console.model.WebThreadPoolReqDTO;
import lombok.Data;
/**

@ -0,0 +1,66 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.hippo4j.config.model.biz.threadpool;
import lombok.Data;
import java.util.List;
@Data
public class WebThreadPoolReqDTO {
/**
* Thread-pool id
*/
private String tenantId;
/**
* Item id
*/
private String itemId;
/**
* thread pool instance id
*/
private String instanceId;
/**
* Core pool size
*/
private Integer corePoolSize;
/**
* Maximum pool size
*/
private Integer maximumPoolSize;
/**
* Keep alive time
*/
private Integer keepAliveTime;
/**
* weather modify all instances
*/
private Integer modifyAll;
/**
* Client address list
*/
private List<String> clientAddressList;
}

@ -17,7 +17,6 @@
package cn.hippo4j.config.service.biz.impl;
import cn.hippo4j.common.constant.ConfigModifyTypeConstants;
import cn.hippo4j.common.toolkit.JSONUtil;
import cn.hippo4j.config.model.biz.adapter.ThreadPoolAdapterReqDTO;
@ -29,7 +28,6 @@ import org.springframework.stereotype.Service;
import static cn.hippo4j.common.constant.Constants.HTTP_EXECUTE_TIMEOUT;
@Slf4j
@Service
public class AdapterThreadPoolConfigModifyVerifyServiceImpl extends AbstractConfigModifyVerifyService {

@ -20,20 +20,18 @@ package cn.hippo4j.config.service.biz.impl;
import cn.hippo4j.common.constant.ConfigModifyTypeConstants;
import cn.hippo4j.common.toolkit.JSONUtil;
import cn.hippo4j.config.model.biz.threadpool.ConfigModifyVerifyReqDTO;
import cn.hippo4j.console.model.WebThreadPoolReqDTO;
import cn.hippo4j.config.model.biz.threadpool.WebThreadPoolReqDTO;
import cn.hutool.core.text.StrBuilder;
import cn.hutool.http.HttpUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import static cn.hippo4j.common.constant.Constants.HTTP_EXECUTE_TIMEOUT;
@Slf4j
@Service
public class WebThreadPoolConfigModifyVerifyServiceImpl extends AbstractConfigModifyVerifyService {
@Override
public Integer type() {
return ConfigModifyTypeConstants.WEB_THREAD_POOL;

Loading…
Cancel
Save