private Map<String, ClusterSettingEntity> getClusterConfInfo(StringBuilder strBuff) {
        // http://127.0.0.1:8080/webapi.htm?method=admin_query_cluster_default_setting
        JsonObject jsonRes = qryDataFromMaster(
                "admin_query_cluster_default_setting", new HashMap<>(), strBuff);
        // check return result
        if (!jsonRes.get("result").getAsBoolean()) {
            logger.info(strBuff.append("Query cluster configurations info failure:")
                    .append(jsonRes.get("result").getAsString()).toString());
            strBuff.delete(0, strBuff.length());
            return null;
        }
        Map<String, ClusterSettingEntity> clusterSettingMap = new HashMap<>();
        JsonArray clusterInfoList = jsonRes.get("data").getAsJsonArray();
        for (int i = 0; i < clusterInfoList.size(); i++) {
            JsonObject jsonItem = clusterInfoList.get(i).getAsJsonObject();
            if (jsonItem == null) {
                continue;
            }
            try {
                // get base information
                BaseEntity baseEntity = getBaseEntityInfo(jsonItem);
                // get topic default configurations
                TopicPropGroup defTopicProps = getTopicProps(jsonItem);
                // get broker default configurations
                int brokerPort = jsonItem.get("brokerPort").getAsInt();
                int brokerTlsPort = jsonItem.get("brokerTLSPort").getAsInt();
                int brokerWebPort = jsonItem.get("brokerWebPort").getAsInt();
                int maxMsgSizeInMB = jsonItem.get("maxMsgSizeInMB").getAsInt();
                int qryPriorityId = jsonItem.get("qryPriorityId").getAsInt();
                boolean flowCtrlEnable = jsonItem.get("flowCtrlEnable").getAsBoolean();
                int flowRuleCnt = jsonItem.get("flowCtrlRuleCount").getAsInt();
                JsonArray flowCtrlInfoArray = jsonItem.get("flowCtrlInfo").getAsJsonArray();
                String flowCtrlInfoStr = flowCtrlInfoArray.toString();
                EnableStatus flowCtrlStatus =
                        flowCtrlEnable ? EnableStatus.STATUS_ENABLE : EnableStatus.STATUS_DISABLE;
                // build cluster setting entity
                ClusterSettingEntity settingEntity =
                        new ClusterSettingEntity(baseEntity);
                settingEntity.updModifyInfo(baseEntity.getDataVerId(),
                        brokerPort, brokerTlsPort, brokerWebPort, maxMsgSizeInMB,
                        qryPriorityId, flowCtrlStatus, flowRuleCnt, flowCtrlInfoStr, defTopicProps);
                clusterSettingMap.put(settingEntity.getRecordKey(), settingEntity);
            } catch (Throwable e) {
                logger.error(strBuff.append("Parse cluster configurations(")
                        .append(jsonItem).append(") throw exception ").append(e).toString());
                strBuff.delete(0, strBuff.length());
                throw e;
            }
        }
        return clusterSettingMap;
    }
Query cluster setting configurations.

@param strBuff  the string buffer
@return         the query result, null if query failure
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/cli/CliMetaDataBRU.java