Class SyncedFlushResponse

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

public class SyncedFlushResponse extends ActionResponse implements org.elasticsearch.common.xcontent.ToXContentFragment
The result of performing a sync flush operation on all shards of multiple indices
  • Constructor Details

  • Method Details

    • totalShards

      public int totalShards()
      total number shards, including replicas, both assigned and unassigned
    • failedShards

      public int failedShards()
      total number of shards for which the operation failed
    • successfulShards

      public int successfulShards()
      total number of shards which were successfully sync-flushed
    • restStatus

      public RestStatus restStatus()
    • getShardsResultPerIndex

      public Map<String,List<ShardsSyncedFlushResult>> getShardsResultPerIndex()
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
      IOException
    • writeTo

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