Class ClusterIndexHealth

java.lang.Object
org.elasticsearch.cluster.health.ClusterIndexHealth
All Implemented Interfaces:
Iterable<ClusterShardHealth>, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

public final class ClusterIndexHealth extends Object implements Iterable<ClusterShardHealth>, Writeable, org.elasticsearch.common.xcontent.ToXContentFragment
  • Field Details

    • SHARD_PARSER

      public static final org.elasticsearch.common.xcontent.ObjectParser.NamedObjectParser<ClusterShardHealth,String> SHARD_PARSER
  • Constructor Details

  • Method Details

    • getIndex

      public String getIndex()
    • getNumberOfShards

      public int getNumberOfShards()
    • getNumberOfReplicas

      public int getNumberOfReplicas()
    • getActiveShards

      public int getActiveShards()
    • getRelocatingShards

      public int getRelocatingShards()
    • getActivePrimaryShards

      public int getActivePrimaryShards()
    • getInitializingShards

      public int getInitializingShards()
    • getUnassignedShards

      public int getUnassignedShards()
    • getStatus

      public ClusterHealthStatus getStatus()
    • getShards

      public Map<Integer,ClusterShardHealth> getShards()
    • iterator

      public Iterator<ClusterShardHealth> iterator()
      Specified by:
      iterator in interface Iterable<ClusterShardHealth>
    • 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
    • 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
    • innerFromXContent

      public static ClusterIndexHealth innerFromXContent(org.elasticsearch.common.xcontent.XContentParser parser, String index)
    • fromXContent

      public static ClusterIndexHealth fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object