@Override
    public void process(String cmd, Event event, HttpServletResponse response) {
        String sourceName = event.getHeaders().get(ProxyServiceMBean.KEY_SOURCENAME);
        LOG.info("start to process admin task:{},sourceName:{}", cmd, sourceName);
        switch (cmd) {
            case ProxyServiceMBean.METHOD_STOPSERVICE:
            case ProxyServiceMBean.METHOD_RECOVERSERVICE:
                if (sourceName == null) {
                    break;
                }
                if (StringUtils.equals(sourceName, ProxyServiceMBean.ALL_SOURCENAME)) {
                    this.processAll(cmd, event, response);
                } else {
                    this.processOne(cmd, sourceName, response);
                }
                break;
            default:
                break;
        }
        LOG.info("end to process admin task:{},sourceName:{}", cmd, sourceName);
    }
process

@param cmd
@param event
@param response
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/admin/ProxyServiceAdminEventHandler.java