/// <inheritdoc />
 public INodeInfoResponse NodesInfo(INodesInfoRequest nodesInfoRequest)
 {
     return(this.Dispatch <INodesInfoRequest, NodesInfoRequestParameters, NodeInfoResponse>(
                nodesInfoRequest,
                (p, d) => this.RawDispatch.NodesInfoDispatch <NodeInfoResponse>(p)
                ));
 }
 /// <inheritdoc />
 public Task <INodeInfoResponse> NodesInfoAsync(INodesInfoRequest nodesInfoRequest)
 {
     return(this.DispatchAsync <INodesInfoRequest, NodesInfoRequestParameters, NodeInfoResponse, INodeInfoResponse>(
                nodesInfoRequest,
                (p, d) => this.RawDispatch.NodesInfoDispatchAsync <NodeInfoResponse>(p)
                ));
 }
		/// <inheritdoc />
		public Task<INodeInfoResponse> NodesInfoAsync(INodesInfoRequest nodesInfoRequest)
		{
			return this.DispatchAsync<INodesInfoRequest, NodesInfoRequestParameters, NodeInfoResponse, INodeInfoResponse>(
				nodesInfoRequest,
				(p, d) => this.RawDispatch.NodesInfoDispatchAsync<NodeInfoResponse>(p)
			);
		}
		/// <inheritdoc />
		public INodeInfoResponse NodesInfo(INodesInfoRequest nodesInfoRequest)
		{
			return this.Dispatch<INodesInfoRequest, NodesInfoRequestParameters, NodeInfoResponse>(
				nodesInfoRequest,
				(p, d) => this.RawDispatch.NodesInfoDispatch<NodeInfoResponse>(p)
			);
		}
 /// <summary>
 /// <c>GET</c> request to the <c>nodes.info</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html</a>
 /// </summary>
 public Task <NodesInfoResponse> InfoAsync(INodesInfoRequest request, CancellationToken ct = default) => DoRequestAsync <INodesInfoRequest, NodesInfoResponse>(request, request.RequestParameters, ct);
 /// <summary>
 /// <c>GET</c> request to the <c>nodes.info</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html">https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html</a>
 /// </summary>
 public NodesInfoResponse Info(INodesInfoRequest request) => DoRequest <INodesInfoRequest, NodesInfoResponse>(request, request.RequestParameters);
Ejemplo n.º 7
0
 /// <inheritdoc/>
 public Task <INodesInfoResponse> NodesInfoAsync(INodesInfoRequest request) =>
 this.Dispatcher.DispatchAsync <INodesInfoRequest, NodesInfoRequestParameters, NodesInfoResponse, INodesInfoResponse>(
     request,
     (p, d) => this.LowLevelDispatch.NodesInfoDispatchAsync <NodesInfoResponse>(p)
     );
Ejemplo n.º 8
0
 /// <inheritdoc/>
 public INodesInfoResponse NodesInfo(INodesInfoRequest request) =>
 this.Dispatcher.Dispatch <INodesInfoRequest, NodesInfoRequestParameters, NodesInfoResponse>(
     request,
     (p, d) => this.LowLevelDispatch.NodesInfoDispatch <NodesInfoResponse>(p)
     );
Ejemplo n.º 9
0
 public static void Update(ElasticsearchPathInfo <NodesInfoRequestParameters> pathInfo, INodesInfoRequest request)
 {
     if (request.Metrics != null)
     {
         pathInfo.Metric = request.Metrics.Cast <Enum>().GetStringValue();
     }
     pathInfo.HttpMethod = PathInfoHttpMethod.GET;
 }
Ejemplo n.º 10
0
 /// <inheritdoc />
 public Task <INodesInfoResponse> NodesInfoAsync(INodesInfoRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 Dispatcher.DispatchAsync <INodesInfoRequest, NodesInfoRequestParameters, NodesInfoResponse, INodesInfoResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.NodesInfoDispatchAsync <NodesInfoResponse>(p, c)
     );
		/// <inheritdoc/>
		public Task<INodesInfoResponse> NodesInfoAsync(INodesInfoRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<INodesInfoRequest, NodesInfoRequestParameters, NodesInfoResponse, INodesInfoResponse>(
				request,
				cancellationToken,
				(p, d, c) => this.LowLevelDispatch.NodesInfoDispatchAsync<NodesInfoResponse>(p, c)
			);
		/// <inheritdoc/>
		public INodesInfoResponse NodesInfo(INodesInfoRequest request) =>
			this.Dispatcher.Dispatch<INodesInfoRequest, NodesInfoRequestParameters, NodesInfoResponse>(
				request,
				(p, d) => this.LowLevelDispatch.NodesInfoDispatch<NodesInfoResponse>(p)
			);
		/// <inheritdoc/>
		public Task<INodesInfoResponse> NodesInfoAsync(INodesInfoRequest request) => 
			this.Dispatcher.DispatchAsync<INodesInfoRequest, NodesInfoRequestParameters, NodesInfoResponse, INodesInfoResponse>(
				request,
				(p, d) => this.LowLevelDispatch.NodesInfoDispatchAsync<NodesInfoResponse>(p)
			);
Ejemplo n.º 14
0
 public static Task <NodesInfoResponse> NodesInfoAsync(this IElasticClient client, INodesInfoRequest request, CancellationToken ct = default)
 => client.Nodes.InfoAsync(request, ct);
Ejemplo n.º 15
0
 public static NodesInfoResponse NodesInfo(this IElasticClient client, INodesInfoRequest request)
 => client.Nodes.Info(request);