Class BaseBroadcastResponse

All Implemented Interfaces:
Writeable, RefCounted
Direct Known Subclasses:
BroadcastResponse, ChunkedBroadcastResponse, RecoveryResponse

public class BaseBroadcastResponse extends ActionResponse
Base class for all broadcast operation based responses.
  • Field Details

  • Constructor Details

  • Method Details

    • getTotalShards

      public int getTotalShards()
      The total shards this request ran against.
    • getSuccessfulShards

      public int getSuccessfulShards()
      The successful shards this request was executed on.
    • getFailedShards

      public int getFailedShards()
      The failed shards this request was executed on.
    • getStatus

      public RestStatus getStatus()
      The REST status that should be used for the response
    • getShardFailures

      public DefaultShardOperationFailedException[] getShardFailures()
      The list of shard failures exception.
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Throws:
      IOException