Class ClusterStatsIndices.ShardStats

java.lang.Object
org.elasticsearch.action.admin.cluster.stats.ClusterStatsIndices.ShardStats
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment
Enclosing class:
ClusterStatsIndices

public static class ClusterStatsIndices.ShardStats extends Object implements org.elasticsearch.xcontent.ToXContentFragment
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    double
    the average number primary shards across the indices
    double
    average replication factor across the indices.
    double
    average number of shards (primary+replicas) across the indices
    int
    number of indices in the cluster
    int
    the maximum number of primary shards an index has
    double
    maximum replication factor across the indices.
    int
    the maximum number of shards (primary+replicas) an index has
    int
    the minimum number of primary shards an index has
    double
    minimum replication factor across the indices.
    int
    the minimum number of shards (primary+replicas) an index has
    int
    total number of primary shards in the cluster
    double
    returns how many *redundant* copies of the data the cluster holds - running with no replicas will return 0
    int
    total number of shards in the cluster
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment

    isFragment
  • Constructor Details

    • ShardStats

      public ShardStats()
  • Method Details

    • getIndices

      public int getIndices()
      number of indices in the cluster
    • getTotal

      public int getTotal()
      total number of shards in the cluster
    • getPrimaries

      public int getPrimaries()
      total number of primary shards in the cluster
    • getReplication

      public double getReplication()
      returns how many *redundant* copies of the data the cluster holds - running with no replicas will return 0
    • getMaxIndexShards

      public int getMaxIndexShards()
      the maximum number of shards (primary+replicas) an index has
    • getMinIndexShards

      public int getMinIndexShards()
      the minimum number of shards (primary+replicas) an index has
    • getAvgIndexShards

      public double getAvgIndexShards()
      average number of shards (primary+replicas) across the indices
    • getMaxIndexPrimaryShards

      public int getMaxIndexPrimaryShards()
      the maximum number of primary shards an index has
    • getMinIndexPrimaryShards

      public int getMinIndexPrimaryShards()
      the minimum number of primary shards an index has
    • getAvgIndexPrimaryShards

      public double getAvgIndexPrimaryShards()
      the average number primary shards across the indices
    • getMinIndexReplication

      public double getMinIndexReplication()
      minimum replication factor across the indices. See getReplication()
    • getAvgIndexReplication

      public double getAvgIndexReplication()
      average replication factor across the indices. See getReplication()
    • getMaxIndexReplication

      public double getMaxIndexReplication()
      maximum replication factor across the indices. See getReplication()
    • addIndexShardCount

      public void addIndexShardCount(ClusterStatsIndices.ShardStats indexShardCount)
    • toXContent

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

      public String toString()
      Overrides:
      toString in class Object