@Override
    public void process(String cmd, Event event, HttpServletResponse response) {
        LOG.info("start to process admin task:{}", cmd);
        String sortTaskId = event.getHeaders().get(ConsumerServiceMBean.KEY_TASKNAME);
        switch (cmd) {
            case METHOD_STOPCONSUMER:
            case METHOD_RECOVERCONSUMER:
                if (sortTaskId == null) {
                    break;
                }
                if (StringUtils.equals(sortTaskId, ConsumerServiceMBean.ALL_TASKNAME)) {
                    this.processAll(cmd, event, response);
                } else {
                    this.processOne(cmd, sortTaskId, response);
                }
                break;
            default:
                break;
        }
        LOG.info("end to process admin task:{}", cmd);
    }
process

@param cmd
@param event
@param response
inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/admin/ConsumerServiceAdminEventHandler.java