public ClusterVo getTopicAndPartitionCount(Integer clusterId) {
        ClusterVo clusterVo = new ClusterVo();
        String url = masterService.getQueryCountUrl(clusterId, TubeConst.TOPIC_CONFIG_INFO);
        String queryMaster = masterService.queryMaster(url);
        JsonObject jsonObject = gson.fromJson(queryMaster, JsonObject.class);
        JsonElement data = jsonObject.get("data");
        JsonElement dataCount = jsonObject.get("count");
        Integer topicSize = gson.fromJson(dataCount, Integer.class);
        JsonArray jsonData = gson.fromJson(data, JsonArray.class);
        int partitionCount = 0;
        List<TopicQueryRes> topicQueryResList = gson.fromJson(jsonData.toString(),
                new TypeToken<List<TopicQueryRes>>() {
                }.getType());
        for (TopicQueryRes topicQueryRes : topicQueryResList) {
            String totalCfgNumPart = topicQueryRes.getTotalCfgNumPart();
            partitionCount = partitionCount + (int) Math.ceil(Double.parseDouble(totalCfgNumPart));
        }
        clusterVo.setTopicCount(topicSize);
        clusterVo.setPartitionCount(partitionCount);
        return clusterVo;
    }
query topic and partition count

@param clusterId
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/controller/cluster/ClusterController.java