Class RecoveryResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class RecoveryResponse extends BroadcastResponse
Information regarding the recovery state of indices and their associated shards.
  • Constructor Details

    • RecoveryResponse

      public RecoveryResponse(StreamInput in) throws IOException
      Throws:
      IOException
    • RecoveryResponse

      public RecoveryResponse(int totalShards, int successfulShards, int failedShards, Map<String,List<RecoveryState>> shardRecoveryStates, List<DefaultShardOperationFailedException> shardFailures)
      Constructs recovery information for a collection of indices and associated shards. Keeps track of how many total shards were seen, and out of those how many were successfully processed and how many failed.
      Parameters:
      totalShards - Total count of shards seen
      successfulShards - Count of shards successfully processed
      failedShards - Count of shards which failed to process
      shardRecoveryStates - Map of indices to shard recovery information
      shardFailures - List of failures processing shards
  • Method Details