コード例 #1
0
		public ClusterStateRequestTests()
		{
			var request = new ClusterStateRequest()
			{
				Metrics = new [] {ClusterStateMetric.Blocks, ClusterStateMetric.MasterNode },
				FlatSettings = true
			};
			var response = this._client.ClusterState(request);
			this._status = response.ConnectionStatus;
		}
コード例 #2
0
        public ClusterStateRequestTests()
        {
            var request = new ClusterStateRequest()
            {
                Metrics      = new [] { ClusterStateMetric.Blocks, ClusterStateMetric.MasterNode },
                FlatSettings = true
            };
            var response = this._client.ClusterState(request);

            this._status = response.ConnectionStatus;
        }
コード例 #3
0
 public Task <ClusterStateResponse> StateAsync(ClusterStateRequest request, CancellationToken cancellationToken = default)
 {
     request.BeforeRequest();
     return(DoRequestAsync <ClusterStateRequest, ClusterStateResponse>(request, cancellationToken));
 }
コード例 #4
0
 public ClusterStateResponse State(ClusterStateRequest request)
 {
     request.BeforeRequest();
     return(DoRequest <ClusterStateRequest, ClusterStateResponse>(request));
 }