tubemq-server/src/main/java/org/apache/tubemq/server/master/web/handler/WebBrokerDefConfHandler.java
/**
     * Release broker auto forbidden status
     *
     * @param req
     * @return
     * @throws Exception
     */
Release broker auto forbidden status
@param req
@return
@throws Exception
Release broker auto forbidden status @param req @return @throws Exception
public StringBuilder adminRelBrokerAutoForbiddenStatus(
            HttpServletRequest req) throws Exception {
        StringBuilder strBuffer = new StringBuilder(512);
        try {
            WebParameterUtils.reqAuthorizeCheck(master, brokerConfManager,
                    req.getParameter("confModAuthToken"));
            String modifyUser =
                    WebParameterUtils.validStringParameter("modifyUser",
                            req.getParameter("modifyUser"),
                            TBaseConstants.META_MAX_USERNAME_LENGTH,
                            true, "");
            Date modifyDate =
                    WebParameterUtils.validDateParameter("modifyDate",
                            req.getParameter("modifyDate"),
                            TBaseConstants.META_MAX_DATEVALUE_LENGTH,
                            false, new Date());
            Set<Integer> batchBrokerIds = new HashSet<>();
            Set<BdbBrokerConfEntity> batchBrokerEntitySet = WebParameterUtils.getBatchBrokerIdSet(
                    req.getParameter("brokerId"), brokerConfManager, true, strBuffer);
            for (BdbBrokerConfEntity entity : batchBrokerEntitySet) {
                batchBrokerIds.add(entity.getBrokerId());
            }
            String relReason =
                    WebParameterUtils.validStringParameter("relReason",
                            req.getParameter("relReason"),
                            TBaseConstants.META_MAX_OPREASON_LENGTH,
                            false, "API call to release auto-forbidden brokers");
            BrokerInfoHolder brokerInfoHolder = master.getBrokerHolder();
            brokerInfoHolder.relAutoForbiddenBrokerInfo(batchBrokerIds, relReason);
            strBuffer.append("{\"result\":true,\"errCode\":0,\"errMsg\":\"OK\"}");
        } catch (Exception e) {
            strBuffer.delete(0, strBuffer.length());
            strBuffer.append("{\"result\":false,\"errCode\":400,\"errMsg\":\"")
                    .append(e.getMessage()).append("\"}");
        }
        return strBuffer;
    }
public StringBuilder adminRelBrokerAutoForbiddenStatus ( HttpServletRequest req ) throws Exception { StringBuilder strBuffer = new StringBuilder ( 512 ) ; try { WebParameterUtils . reqAuthorizeCheck ( master , brokerConfManager , req . getParameter ( "confModAuthToken" ) ) ; String modifyUser = WebParameterUtils . validStringParameter ( "modifyUser" , req . getParameter ( "modifyUser" ) , TBaseConstants . META_MAX_USERNAME_LENGTH , true , "" ) ; Date modifyDate = WebParameterUtils . validDateParameter ( "modifyDate" , req . getParameter ( "modifyDate" ) , TBaseConstants . META_MAX_DATEVALUE_LENGTH , false , new Date ( ) ) ; Set < Integer > batchBrokerIds = new HashSet < > ( ) ; Set < BdbBrokerConfEntity > batchBrokerEntitySet = WebParameterUtils . getBatchBrokerIdSet ( req . getParameter ( "brokerId" ) , brokerConfManager , true , strBuffer ) ; for ( BdbBrokerConfEntity entity : batchBrokerEntitySet ) { batchBrokerIds . add ( entity . getBrokerId ( ) ) ; } String relReason = WebParameterUtils . validStringParameter ( "relReason" , req . getParameter ( "relReason" ) , TBaseConstants . META_MAX_OPREASON_LENGTH , false , "API call to release auto-forbidden brokers" ) ; BrokerInfoHolder brokerInfoHolder = master . getBrokerHolder ( ) ; brokerInfoHolder . relAutoForbiddenBrokerInfo ( batchBrokerIds , relReason ) ; strBuffer . append ( "{\"result\":true,\"errCode\":0,\"errMsg\":\"OK\"}" ) ; } catch ( Exception e ) { strBuffer . delete ( 0 , strBuffer . length ( ) ) ; strBuffer . append ( "{\"result\":false,\"errCode\":400,\"errMsg\":\"" ) . append ( e . getMessage ( ) ) . append ( "\"}" ) ; } return strBuffer ; }
Release broker auto forbidden status
 @param req
 @return
 @throws Exception
Release broker auto forbidden status @param req @return @throws Exception