예제 #1
0
            public override IResponse RefreshFromConnection(ElasticClient cli)
            {
                var state = cli.ClusterState(ClusterStateInfo.ExcludeMetadata);
                ClusterName = state.ClusterName;
                MasterNode = state.MasterNode;
                Nodes = state.Nodes;
                RoutingNodes = state.RoutingNodes;
                if (state.RoutingTable != null)
                    RoutingIndices = state.RoutingTable.Indices;

                return state;
            }