public static boolean checkHostName(String hostName,
            StringBuilder strBuff, ProcessResult result) {
        return PBParameterUtils.getStringParameter(
                WebFieldDef.HOSTNAME, hostName, strBuff, result);
    }
Check the hostname.

@param hostName  the hostname to be checked.
@param strBuff the string used to construct the 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