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 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 operation
      successfulShards - the total number of shards for which execution of the operation was successful
      failedShards - the total number of shards for which execution of the operation failed
      results - the per-node aggregated shard-level results
      shardFailures - the exceptions corresponding to shard operation failures
      Returns:
      the response