Class ClusterStateResponse

java.lang.Object
All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted

public class ClusterStateResponse
extends ActionResponse
The response for getting the cluster state.
  • Constructor Details

    • ClusterStateResponse

      public ClusterStateResponse​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • ClusterStateResponse

      public ClusterStateResponse​(ClusterName clusterName, ClusterState clusterState, boolean waitForTimedOut)
  • Method Details

    • getState

      public ClusterState getState()
      The requested cluster state. Only the parts of the cluster state that were requested are included in the returned ClusterState instance.
    • getClusterName

      public ClusterName getClusterName()
      The name of the cluster.
    • isWaitForTimedOut

      public boolean isWaitForTimedOut()
      Returns whether the request timed out waiting for a cluster state with a metadata version equal or higher than the specified metadata.
    • writeTo

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

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object