public void reloadTpsControlRule(String pointName, boolean external) {
        NotifyCenter.publishEvent(new TpsControlRuleChangeEvent(pointName, external));
    }
@Test
    void testReloadTpsControlRule() throws Exception {
        String localRuleStorageBaseDir = EnvUtils.getNacosHome() + File.separator + "tmpTps" + File.separator + "tps" + File.separator;
        ControlConfigs.getInstance().setLocalRuleStorageBaseDir(localRuleStorageBaseDir);
        resetRuleStorageProxy();
        final ControlManagerCenter controlManagerCenter = ControlManagerCenter.getInstance();
        TpsControlRule tpsControlRule = new TpsControlRule();
        tpsControlRule.setPointName("test");
        RuleDetail ruleDetail = new RuleDetail();
        ruleDetail.setMaxCount(100);
        ruleDetail.setRuleName("test");
        ruleDetail.setMonitorType(MonitorType.INTERCEPT.getType());
        ruleDetail.setPeriod(TimeUnit.SECONDS);
        tpsControlRule.setPointRule(ruleDetail);
        String ruleContent = JacksonUtils.toJson(tpsControlRule);
        controlManagerCenter.getRuleStorageProxy().getLocalDiskStorage().saveTpsRule("test", ruleContent);
        controlManagerCenter.getTpsControlManager().applyTpsRule("test", tpsControlRule);
        TpsControlRule testTpsControlRule = controlManagerCenter.getTpsControlManager().getRules().get("test");
        
        assertEquals(100, testTpsControlRule.getPointRule().getMaxCount());
        assertEquals("test", testTpsControlRule.getPointRule().getRuleName());
        
        TpsControlRule tpsControlRule2 = new TpsControlRule();
        tpsControlRule2.setPointName("test");
        RuleDetail ruleDetail2 = new RuleDetail();
        ruleDetail2.setMaxCount(200);
        ruleDetail2.setRuleName("test2");
        ruleDetail2.setMonitorType(MonitorType.INTERCEPT.getType());
        ruleDetail2.setPeriod(TimeUnit.SECONDS);
        tpsControlRule2.setPointRule(ruleDetail2);
        String ruleContent2 = JacksonUtils.toJson(tpsControlRule2);
        controlManagerCenter.getRuleStorageProxy().getLocalDiskStorage().saveTpsRule("test", ruleContent2);
        controlManagerCenter.reloadTpsControlRule("test", false);
        
        //wait event
        TimeUnit.SECONDS.sleep(1);
        TpsControlRule testTpsControlRule2 = controlManagerCenter.getTpsControlManager().getRules().get("test");
        assertEquals(200, testTpsControlRule2.getPointRule().getMaxCount());
        assertEquals("test2", testTpsControlRule2.getPointRule().getRuleName());
    }