public boolean deleteRule(BaseRuleConfigManager manager, String key) { try { String xmlContent = manager.deleteRule(key); return manager.insert(xmlContent); } catch (Exception ex) { return false; } }
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; } }