private JsonObject qryDataFromMaster(String method,
            Map<String, String> inParamMap,
            StringBuilder strBuff) {
        String visitUrl;
        JsonObject jsonRes = null;
        // call master nodes
        for (String address : masterInfo.getNodeHostPortList()) {
            visitUrl = strBuff.append("http://").append(address)
                    .append("/webapi.htm?method=").append(method).toString();
            strBuff.delete(0, strBuff.length());
            try {
                jsonRes = HttpUtils.requestWebService(visitUrl, inParamMap);
                if (jsonRes != null) {
                    // if get data, break cycle
                    break;
                }
            } catch (Throwable e) {
                //
            }
        }
        return jsonRes;
    }
Query data from Masters

@param method      the method name
@param inParamMap  the parameter map
@param strBuff     the string buffer
@return            the query result of Json format, null if failure
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/cli/CliMetaDataBRU.java