Class ClusterRerouteResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class ClusterRerouteResponse
extends AcknowledgedResponse
implements org.elasticsearch.common.xcontent.ToXContentObject
Response returned after a cluster reroute request
  • Method Details

    • getState

      public ClusterState getState()
      Returns the cluster state resulted from the cluster reroute request execution
    • getExplanations

      public RoutingExplanations getExplanations()
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class AcknowledgedResponse
      Throws:
      java.io.IOException
    • addCustomFields

      protected void addCustomFields​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Overrides:
      addCustomFields in class AcknowledgedResponse
      Throws:
      java.io.IOException