Пример #1
0
 private static List <Func <object> > ClusterCommands(ElasticClient elastic)
 {
     return(new List <Func <object> >
     {
         () => elastic.ClusterAllocationExplain(new ClusterAllocationExplainRequest()),
         () => elastic.ClusterGetSettings(new ClusterGetSettingsRequest()),
         () => elastic.ClusterHealth(new ClusterHealthRequest()),
         () => elastic.ClusterPendingTasks(new ClusterPendingTasksRequest()),
         () => elastic.ClusterPutSettings(new ClusterPutSettingsRequest()),
         () => elastic.ClusterReroute(new ClusterRerouteRequest()),
         () => elastic.ClusterState(new ClusterStateRequest()),
         () => elastic.ClusterStats(new ClusterStatsRequest()),
     });
 }