Class BroadcastResponse

    • Constructor Detail

      • BroadcastResponse

        public BroadcastResponse()
      • BroadcastResponse

        public BroadcastResponse​(StreamInput in)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • 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
      • addCustomXContentFields

        protected void addCustomXContentFields​(XContentBuilder builder,
                                               ToXContent.Params params)
                                        throws java.io.IOException
        Override in subclass to add custom fields following the common `_shards` field
        Throws:
        java.io.IOException