[Feature]支持指定Server的具体Jmx端口(#965)

变更事项:
1、接入集群时,支持按照Broker粒度进行Jmx端口的配置;
2、设置Jmx端口的优先级为:指定Broker端口 》ZK中获取到的Broker端口 》指定Cluster端口;

补充说明:
1、该修改仅为后端修改,产品上暂未进行修改;
This commit is contained in:
ZQKC
2023-06-01 14:29:07 +08:00
committed by EricZeng
parent b3fd494398
commit e34e3f3e3d
10 changed files with 172 additions and 39 deletions

View File

@@ -360,7 +360,7 @@ public class BrokerServiceImpl extends BaseKafkaVersionControlService implements
private Broker getStartTimeAndBuildBroker(Long clusterPhyId, Node newNode, JmxConfig jmxConfig) {
try {
Long startTime = jmxDAO.getServerStartTime(clusterPhyId, newNode.host(), jmxConfig.getJmxPort(), jmxConfig);
Long startTime = jmxDAO.getServerStartTime(clusterPhyId, newNode.host(), jmxConfig.getFinallyJmxPort(String.valueOf(newNode.id())), jmxConfig);
return Broker.buildFrom(clusterPhyId, newNode, startTime);
} catch (Exception e) {