public System.Collections.Generic.List <ThresholdMessage> GetMonitorThresholds(System.Collections.Generic.List <SnmpConfiger> snmpConfigs) { DefaultSnmpExecutors defaultSnmpExecutors = new DefaultSnmpExecutors(snmpConfigs); System.Collections.Generic.List <ThresholdMessage> thresholds = defaultSnmpExecutors.GetThresholds(); this.retryConfigs = defaultSnmpExecutors.getRetryList(); return(thresholds); }
public System.Collections.Generic.List <ThresholdMessage> GetMonitorThresholds(System.Collections.Generic.List <DevSnmpConfig> configs) { DevAccessCfg instance = DevAccessCfg.GetInstance(); System.Collections.Generic.List <SnmpConfiger> list = new System.Collections.Generic.List <SnmpConfiger>(); foreach (DevSnmpConfig current in configs) { DevModelConfig deviceModelConfig = instance.getDeviceModelConfig(current.modelName, current.fmwareVer); SnmpConfiger item = new SnmpConfiger(instance.getSnmpConfig(current), deviceModelConfig, current.devMac, current.devID); list.Add(item); } DefaultSnmpExecutors defaultSnmpExecutors = new DefaultSnmpExecutors(list); System.Collections.Generic.List <ThresholdMessage> thresholds = defaultSnmpExecutors.GetThresholds(); this.retryConfigs = defaultSnmpExecutors.getRetryList(); return(thresholds); }