Exemplo n.º 1
0
        public static List <ElasticAlias> ToList(ICatResponse <CatAliasesRecord> aliasesRecords)
        {
            var lst = new List <ElasticAlias>();

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

            return(lst);
        }
Exemplo n.º 2
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);
            }
        }
Exemplo n.º 3
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");
            }
        }