class FaultToleranceConfigurator {

    private String appName;

    private String regulationEffectiveStr;

    private String degradeEffectiveStr;

    private String timeWindowStr;

    private String leastWindowCountStr;

    private String leastWindowExceptionRateMultipleStr;

    private String weightDegradeRateStr;

    private String weightRecoverRateStr;

    private String degradeLeastWeightStr;

    private String degradeMaxIpCountStr;

    /**
     * 解析并生效自动故障剔除配置参数
     */
    public void startFaultTolerance() {<FILL_FUNCTION_BODY>}

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public void setRegulationEffectiveStr(String regulationEffectiveStr) {
        this.regulationEffectiveStr = regulationEffectiveStr;
    }

    public void setDegradeEffectiveStr(String degradeEffectiveStr) {
        this.degradeEffectiveStr = degradeEffectiveStr;
    }

    public void setTimeWindowStr(String timeWindowStr) {
        this.timeWindowStr = timeWindowStr;
    }

    public void setLeastWindowCountStr(String leastWindowCountStr) {
        this.leastWindowCountStr = leastWindowCountStr;
    }

    public void setLeastWindowExceptionRateMultipleStr(String leastWindowExceptionRateMultipleStr) {
        this.leastWindowExceptionRateMultipleStr = leastWindowExceptionRateMultipleStr;
    }

    public void setWeightDegradeRateStr(String weightDegradeRateStr) {
        this.weightDegradeRateStr = weightDegradeRateStr;
    }

    public void setWeightRecoverRateStr(String weightRecoverRateStr) {
        this.weightRecoverRateStr = weightRecoverRateStr;
    }

    public void setDegradeLeastWeightStr(String degradeLeastWeightStr) {
        this.degradeLeastWeightStr = degradeLeastWeightStr;
    }

    public void setDegradeMaxIpCountStr(String degradeMaxIpCountStr) {
        this.degradeMaxIpCountStr = degradeMaxIpCountStr;
    }

}

        Boolean regulationEffective = SofaBootRpcParserUtil.parseBoolean(regulationEffectiveStr);
        Boolean degradeEffective = SofaBootRpcParserUtil.parseBoolean(degradeEffectiveStr);
        Long timeWindow = SofaBootRpcParserUtil.parseLong(timeWindowStr);
        Long leastWindowCount = SofaBootRpcParserUtil.parseLong(leastWindowCountStr);
        Double leastWindowExceptionRateMultiple = SofaBootRpcParserUtil
            .parseDouble(leastWindowExceptionRateMultipleStr);
        Double weightDegradeRate = SofaBootRpcParserUtil.parseDouble(weightDegradeRateStr);
        Double weightRecoverRate = SofaBootRpcParserUtil.parseDouble(weightRecoverRateStr);
        Integer degradeLeastWeight = SofaBootRpcParserUtil.parseInteger(degradeLeastWeightStr);
        Integer degradeMaxIpCount = SofaBootRpcParserUtil.parseInteger(degradeMaxIpCountStr);

        FaultToleranceConfig faultToleranceConfig = new FaultToleranceConfig();
        if (regulationEffective != null) {
            faultToleranceConfig.setRegulationEffective(regulationEffective);
        }
        if (degradeEffective != null) {
            faultToleranceConfig.setDegradeEffective(degradeEffective);
        }
        if (timeWindow != null) {
            faultToleranceConfig.setTimeWindow(timeWindow);
        }
        if (leastWindowCount != null) {
            faultToleranceConfig.setLeastWindowCount(leastWindowCount);
        }
        if (leastWindowExceptionRateMultiple != null) {
            faultToleranceConfig
                .setLeastWindowExceptionRateMultiple(leastWindowExceptionRateMultiple);
        }
        if (weightDegradeRate != null) {
            faultToleranceConfig.setWeightDegradeRate(weightDegradeRate);
        }
        if (weightRecoverRate != null) {
            faultToleranceConfig.setWeightRecoverRate(weightRecoverRate);
        }
        if (degradeLeastWeight != null) {
            faultToleranceConfig.setDegradeLeastWeight(degradeLeastWeight);
        }
        if (degradeMaxIpCount != null) {
            faultToleranceConfig.setDegradeMaxIpCount(degradeMaxIpCount);
        }

        FaultToleranceConfigManager.putAppConfig(appName, faultToleranceConfig);
    
<no_super_class>