public boolean processParams(String[] args) throws Exception {
        // parse parameters and check value
        CommandLine cli = parser.parse(options, args);
        if (cli == null) {
            throw new ParseException("Parse args failure");
        }
        if (cli.hasOption(CliArgDef.VERSION.longOpt)) {
            version();
        }
        if (cli.hasOption(CliArgDef.HELP.longOpt)) {
            help();
        }
        String brokerAddr = defBrokerPortal;
        if (cli.hasOption(CliArgDef.BROKERPORTAL.longOpt)) {
            brokerAddr = cli.getOptionValue(CliArgDef.BROKERPORTAL.longOpt);
            if (TStringUtils.isBlank(brokerAddr)) {
                throw new Exception(CliArgDef.BROKERPORTAL.longOpt + " is required!");
            }
        }
        JsonObject result = null;
        Map<String, String> inParamMap = new HashMap<>();
        String brokerUrl = "http://" + brokerAddr + "/broker.htm";
        if (cli.hasOption(CliArgDef.ADMINMETHOD.longOpt)) {
            inParamMap.put(CliArgDef.METHOD.longOpt, "admin_get_methods");
            result = HttpUtils.requestWebService(brokerUrl, inParamMap);
            System.out.println(result.toString());
            System.exit(0);
        }
        String methodStr = cli.getOptionValue(CliArgDef.METHOD.longOpt);
        if (TStringUtils.isBlank(methodStr)) {
            throw new Exception(CliArgDef.METHOD.longOpt + " is required!");
        }
        inParamMap.put(CliArgDef.METHOD.longOpt, methodStr);
        result = HttpUtils.requestWebService(brokerUrl, inParamMap);
        System.out.println(result.toString());
        return true;
    }
Call the broker's HTTP API by the tubemq-broker-admin.sh script
@param args     Call parameter array,
                the relevant parameters are dynamic mode, which is parsed by CommandLine.
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/cli/CliBrokerAdmin.java