public static List <ElasticIndex> ToList(List <CatIndicesRecordExtended> indexRecords)
        {
            var lst = new List <ElasticIndex>();

            foreach (var item in indexRecords.Where(r => !r.Index.StartsWith(".")))
            {
                ElasticIndex ea = AutoMapper.Mapper.Map <ElasticIndex>(item);
                lst.Add(ea);
            }

            return(lst);
        }
Example #2
0
        public static List <ElasticIndex> ToList(ICatResponse <CatIndicesRecord> indexRecords)
        {
            var lst = new List <ElasticIndex>();

            foreach (var item in indexRecords.Records)
            {
                ElasticIndex ea = AutoMapper.Mapper.Map <ElasticIndex>(item);
                lst.Add(ea);
            }

            return(lst);
        }
Example #3
0
        private void PopulateConnectionEntities()
        {
            using (var access = GetElasticAccess()) {
                ClearTree();

                List <ElasticIndex> indexList = ElasticIndex.ToList(access.IndexList());
                RenderIndexes(indexList);

                List <ElasticAlias> aliasList = ElasticAlias.ToList(access.AliasList());
                RenderAliases(aliasList);

                // apply aliases to indexes
                ApplyAliasesToIndexes(indexList, aliasList);
            }
        }
Example #4
0
        private void PopulateConnectionEntities()
        {
            using (var access = GetElasticAccess()) {
                ClearTree();

                List <ElasticIndex> indexList = ElasticIndex.ToList(access.IndexListExtended());
                //List<ElasticIndex> indexList = ElasticIndex.ToList(access.IndexList());
                RenderIndexes(indexList);

                List <ElasticAlias> aliasList = ElasticAlias.ToList(access.AliasList());
                RenderAliases(aliasList);

                // apply aliases to indexes
                ApplyAliasesToIndexes(indexList, aliasList);

                // add a Tasks node
                var parentNode = treeEntities.Nodes.Add("Tasks");
            }
        }