public StringBuilder adminQueryClientBalanceGroupSet(HttpServletRequest req,
            StringBuilder sBuffer,
            ProcessResult result) {
        try {
            ConsumerInfoHolder consumerHolder = master.getConsumerHolder();
            List<String> clientGroups = consumerHolder.getAllClientBalanceGroups();
            int j = 0;
            WebParameterUtils.buildSuccessWithDataRetBegin(sBuffer);
            for (String groupName : clientGroups) {
                if (TStringUtils.isEmpty(groupName)) {
                    continue;
                }
                if (j++ > 0) {
                    sBuffer.append(",");
                }
                sBuffer.append("\"").append(groupName).append("\"");
            }
            WebParameterUtils.buildSuccessWithDataRetEnd(sBuffer, j);
        } catch (Exception e) {
            sBuffer.delete(0, sBuffer.length());
            WebParameterUtils.buildFailResult(sBuffer, e.getMessage());
        }
        return sBuffer;
    }
Query client balance group set

@param req      request
@param sBuffer  string buffer
@param result   process result

@return   process result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/handler/WebAdminGroupCtrlHandler.java