示例#1
0
 public boolean deleteRule(BaseRuleConfigManager manager, String key) {
   try {
     String xmlContent = manager.deleteRule(key);
     return manager.insert(xmlContent);
   } catch (Exception ex) {
     return false;
   }
 }
示例#2
0
  public boolean addSubmitRule(
      BaseRuleConfigManager manager, String id, String metrics, String configs) {
    try {
      String xmlContent = manager.updateRule(id, metrics, configs);

      return manager.insert(xmlContent);
    } catch (Exception ex) {
      Cat.logError(ex);
      return false;
    }
  }