public static boolean checkBrokerId(String brokerId,
            StringBuilder strBuff, ProcessResult result) {
        if (TStringUtils.isBlank(brokerId)) {
            result.setFailResult(TErrCodeConstants.BAD_REQUEST,
                    "Request miss necessary brokerId data");
            return result.isSuccess();
        }
        String tmpValue = brokerId.trim();
        try {
            result.setSuccResult(Integer.parseInt(tmpValue));
        } catch (Throwable e) {
            result.setFailResult(TErrCodeConstants.BAD_REQUEST,
                    strBuff.append("Parse brokerId to int failure ").append(e.getMessage()).toString());
            strBuff.delete(0, strBuff.length());
        }
        return result.isSuccess();
    }
Check the id of broker

@param brokerId  the id of broker to be checked
@param strBuff the string buffer used to construct check result
@param result  the process result
@return the check result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/paramcheck/PBParameterUtils.java