Module org.elasticsearch.server
Interface TransportBroadcastByNodeAction.ResponseFactory<Response,ShardOperationResult>
- Enclosing class:
TransportBroadcastByNodeAction<Request extends BroadcastRequest<Request>,Response extends BaseBroadcastResponse, ShardOperationResult extends Writeable>
public static interface TransportBroadcastByNodeAction.ResponseFactory<Response,ShardOperationResult>
-
Method Summary
Modifier and TypeMethodDescriptionnewResponse(int totalShards, int successfulShards, int failedShards, List<ShardOperationResult> results, List<DefaultShardOperationFailedException> shardFailures) Creates a new response to the underlying request.
-
Method Details
-
newResponse
Response newResponse(int totalShards, int successfulShards, int failedShards, List<ShardOperationResult> results, List<DefaultShardOperationFailedException> shardFailures) Creates a new response to the underlying request.- Parameters:
totalShards- the total number of shards considered for execution of the operationsuccessfulShards- the total number of shards for which execution of the operation was successfulfailedShards- the total number of shards for which execution of the operation failedresults- the per-node aggregated shard-level resultsshardFailures- the exceptions corresponding to shard operation failures- Returns:
- the response
-