private boolean writeBrokerConfInfo(Map<String, BrokerConfEntity> brokerConfigMap,
            StringBuilder strBuff, ProcessResult result) {
        if (brokerConfigMap.isEmpty()) {
            return true;
        }
        int count = 0;
        Map<String, String> inParamMap = new HashMap<>();
        for (BrokerConfEntity entity : brokerConfigMap.values()) {
            if (count++ > 0) {
                strBuff.append(",");
            }
            // build broker configurations in json format
            entity.toWebJsonStr(strBuff, false, false, true, true);
            if (strBuff.length() > maxDataLength
                    || count % TServerConstants.CFG_BATCH_BROKER_OPERATE_MAX_COUNT == 0) {
                inParamMap.put("brokerJsonSet", "[" + strBuff.toString() + "]");
                strBuff.delete(0, strBuff.length());
                inParamMap.put("createUser", curOperator);
                inParamMap.put("modifyUser", curOperator);
                if (!writeDataToMaster("admin_batch_add_broker_configure",
                        authToken, inParamMap, strBuff, result)) {
                    return false;
                }
                count = 0;
                inParamMap.clear();
                strBuff.delete(0, strBuff.length());
            }
        }
        if (strBuff.length() > 0) {
            inParamMap.put("brokerJsonSet", "[" + strBuff.toString() + "]");
            strBuff.delete(0, strBuff.length());
            inParamMap.put("createUser", curOperator);
            inParamMap.put("modifyUser", curOperator);
            if (!writeDataToMaster("admin_batch_add_broker_configure",
                    authToken, inParamMap, strBuff, result)) {
                return false;
            }
            strBuff.delete(0, strBuff.length());
        }
        return true;
    }
Write broker configurations to Master

@param brokerConfigMap  the broker configurations that needs to be stored
@param strBuff          the string buffer
@param result           the process result
@return         the process result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/cli/CliMetaDataBRU.java