Ejemplo n.º 1
0
 private static List <Func <object> > CatCommands(ElasticClient elastic)
 {
     return(new List <Func <object> >
     {
         () => elastic.CatAliases(new CatAliasesRequest()),
         () => elastic.CatAllocation(new CatAllocationRequest()),
         () => elastic.CatCount(new CatCountRequest()),
         () => elastic.CatFielddata(new CatFielddataRequest()),
         () => elastic.CatHealth(new CatHealthRequest()),
         () => elastic.CatHelp(new CatHelpRequest()),
         () => elastic.CatIndices(new CatIndicesRequest()),
         () => elastic.CatMaster(new CatMasterRequest()),
         () => elastic.CatNodeAttributes(new CatNodeAttributesRequest()),
         () => elastic.CatNodes(new CatNodesRequest()),
         () => elastic.CatPendingTasks(new CatPendingTasksRequest()),
         () => elastic.CatPlugins(new CatPluginsRequest()),
         () => elastic.CatRecovery(new CatRecoveryRequest()),
         () => elastic.CatRepositories(new CatRepositoriesRequest()),
         () => elastic.CatSegments(new CatSegmentsRequest()),
         () => elastic.CatShards(new CatShardsRequest()),
         // CatSnapshots is failing with a JSON deserialization error.
         // It might be a bug in the client or an incompatibility between client
         // and server versions.
         // () => elastic.CatSnapshots(new CatSnapshotsRequest()),
         () => elastic.CatTasks(new CatTasksRequest()),
         () => elastic.CatTemplates(new CatTemplatesRequest()),
         () => elastic.CatThreadPool(new CatThreadPoolRequest()),
     });
 }
Ejemplo n.º 2
0
 private static List <Func <object> > CatCommands(ElasticClient elastic)
 {
     return(new List <Func <object> >
     {
         () => elastic.CatAliases(new CatAliasesRequest()),
         () => elastic.CatAllocation(new CatAllocationRequest()),
         () => elastic.CatCount(new CatCountRequest()),
         () => elastic.CatFielddata(new CatFielddataRequest()),
         () => elastic.CatHealth(new CatHealthRequest()),
         () => elastic.CatHelp(new CatHelpRequest()),
         () => elastic.CatIndices(new CatIndicesRequest()),
         () => elastic.CatMaster(new CatMasterRequest()),
         () => elastic.CatNodeAttributes(new CatNodeAttributesRequest()),
         () => elastic.CatNodes(new CatNodesRequest()),
         () => elastic.CatPendingTasks(new CatPendingTasksRequest()),
         () => elastic.CatPlugins(new CatPluginsRequest()),
         () => elastic.CatRecovery(new CatRecoveryRequest()),
         () => elastic.CatRepositories(new CatRepositoriesRequest()),
         () => elastic.CatSegments(new CatSegmentsRequest()),
         () => elastic.CatShards(new CatShardsRequest()),
         () => elastic.CatSnapshots(new CatSnapshotsRequest()),
         () => elastic.CatTasks(new CatTasksRequest()),
         () => elastic.CatTemplates(new CatTemplatesRequest()),
         () => elastic.CatThreadPool(new CatThreadPoolRequest()),
     });
 }