private TubeMQResult processClusterRequest(String method, String req) {
        switch (method) {
            case TubeConst.ADD:
                LOGGER.info("Received 'add' operation with URL: {}", req);
                return addNewCluster(gson.fromJson(req, AddClusterReq.class));
            case TubeConst.DELETE:
                LOGGER.info("Received 'delete' operation with URL: {}", req);
                return deleteCluster(gson.fromJson(req, DeleteClusterReq.class));
            case TubeConst.MODIFY:
                LOGGER.info("Received 'modify' operation with URL: {}", req);
                return changeCluster(gson.fromJson(req, ClusterDto.class));
            case TubeConst.SWITCH:
                LOGGER.info("Received 'switch' operation with URL: {}", req);
                return masterService.baseRequestMaster(gson.fromJson(req, SwitchClusterReq.class));
            default:
                LOGGER.warn("Received unknown method: {}", method);
                return TubeMQResult.errorResult(TubeMQErrorConst.NO_SUCH_METHOD);
        }
    }
Processes the cluster-related request based on the specified method.

@param method The method to perform (e.g., "add", "delete", "modify", "switch")
@param req    The request body containing relevant data
@return A TubeMQResult indicating the result of the operation
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/controller/cluster/ClusterController.java