Example #1
0
        public List <FlowView> QueryTopDownSwitchViews(DateTime begin, DateTime end, int topCount,
                                                       OrderDownSwitchPolicy policy)
        {
            var zteStats    = ZteRepository.GetHighDownSwitchList(begin, end, DownSwitchThreshold);
            var huaweiStats = HuaweiRepository.GetHighDownSwitchList(begin, end, DownSwitchThreshold);
            var joinViews   =
                HuaweiCellRepository.QueryAllFlowViews <FlowView, FlowZte, FlowHuawei>(zteStats, huaweiStats);

            return(joinViews.ToList().QueryTopViewsByPolicy(topCount, policy));
        }
Example #2
0
        private IEnumerable <FlowView> QueryDistrictDownSwitchViews(string city, string district, DateTime begin, DateTime end)
        {
            var zteStats    = ZteRepository.GetHighDownSwitchList(begin, end, DownSwitchThreshold);
            var huaweiStats = HuaweiRepository.GetHighDownSwitchList(begin, end, DownSwitchThreshold);
            var results     = HuaweiCellRepository.QueryDistrictFlowViews <FlowView, FlowZte, FlowHuawei>(city, district,
                                                                                                          zteStats,
                                                                                                          huaweiStats,
                                                                                                          TownRepository, ENodebRepository);

            return(results);
        }