class FaultInjectCommandHandler extends AbstractAdminCommandHandler {
    private static final String[] commands = new String[]{
            "/faultInjection/config/update",
            "/faultInjection/config/clear",
            "/faultInjection/config/get"};

    static {
        String filters = MotanGlobalConfigUtil.getConfig(ENV_GLOBAL_FILTERS);
        filters = StringUtils.isBlank(filters) ? "faultInjection" : filters + MotanConstants.COMMA_SEPARATOR + "faultInjection";
        MotanGlobalConfigUtil.putConfig(ENV_GLOBAL_FILTERS, filters);
    }

    @Override
    public String[] getCommandName() {
        return commands;
    }

    @Override
    protected void process(String command, Map<String, String> params, Map<String, String> attachments, JSONObject result) {<FILL_FUNCTION_BODY>}
}

        if (commands[0].equals(command)) {
            String configs = params.get("configs");
            List<FaultInjectionFilter.FaultInjectionConfig> configList = JSONArray.parseArray(configs, FaultInjectionFilter.FaultInjectionConfig.class);
            if (configList == null) {
                throw new MotanServiceException("param configs not correct");
            }
            FaultInjectionFilter.FaultInjectionUtil.updateConfigs(configList);
        } else if (commands[1].equals(command)) {
            FaultInjectionFilter.FaultInjectionUtil.clearConfigs();
        }else if (commands[2].equals(command)){
            List<FaultInjectionFilter.FaultInjectionConfig> conf = FaultInjectionFilter.FaultInjectionUtil.getConfigs();
            result.put("data", JSON.parseArray(JSON.toJSONString(conf)));
        }
    
<methods>public non-sealed void <init>() ,public com.weibo.api.motan.rpc.Response handle(com.weibo.api.motan.rpc.Request) <variables>