Skip to content

Commit aaf10ae

Browse files
committed
[Feature] #1121 support clearInactiveClusterPhyBrokers
1 parent 43aca84 commit aaf10ae

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

km-biz/src/main/java/com/xiaojukeji/know/streaming/km/biz/cluster/ClusterBrokersManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public interface ClusterBrokersManager {
2424
* @param dto 封装分页查询参数对象
2525
* @return 返回获取到的缓存查询结果 & broker 表查询结果并集
2626
*/
27-
PaginationResult<ClusterBrokersOverviewVO> deleteInactiveClusterPhyBrokers(Long clusterPhyId, ClusterBrokersOverviewDTO dto);
27+
PaginationResult<ClusterBrokersOverviewVO> clearInactiveClusterPhyBrokers(Long clusterPhyId, ClusterBrokersOverviewDTO dto);
2828

2929

3030
/**

km-biz/src/main/java/com/xiaojukeji/know/streaming/km/biz/cluster/impl/ClusterBrokersManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ public PaginationResult<ClusterBrokersOverviewVO> getClusterPhyBrokersOverview(L
108108
}
109109

110110
@Override
111-
public PaginationResult<ClusterBrokersOverviewVO> deleteInactiveClusterPhyBrokers(Long clusterPhyId, ClusterBrokersOverviewDTO dto) {
112-
brokerService.deleteInactiveClusterPhyBrokers(clusterPhyId);
111+
public PaginationResult<ClusterBrokersOverviewVO> clearInactiveClusterPhyBrokers(Long clusterPhyId, ClusterBrokersOverviewDTO dto) {
112+
brokerService.clearInactiveClusterPhyBrokers(clusterPhyId);
113113
return this.getClusterPhyBrokersOverview(clusterPhyId, dto);
114114
}
115115

km-core/src/main/java/com/xiaojukeji/know/streaming/km/core/service/broker/impl/BrokerServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public void clearInactiveClusterPhyBrokers(Long clusterPhyId) {
187187
.filter(elem -> elem.getStatus().equals(Constant.DOWN))
188188
.forEach(elem -> brokerDAO.deleteById(elem.getId()));
189189
} catch (Exception e) {
190-
log.error("method=deleteInactiveClusterPhyBrokers||clusterPhyId={}||errMsg=exception!", clusterPhyId, e);
190+
log.error("method=clearInactiveClusterPhyBrokers||clusterPhyId={}||errMsg=exception!", clusterPhyId, e);
191191
}
192192
}
193193
@Override

0 commit comments

Comments
 (0)