Class ClusterStatsIndices.ShardStats
java.lang.Object
org.elasticsearch.action.admin.cluster.stats.ClusterStatsIndices.ShardStats
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentFragment
- Enclosing class:
- ClusterStatsIndices
public static class ClusterStatsIndices.ShardStats
extends Object
implements org.elasticsearch.common.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndexShardCount(ClusterStatsIndices.ShardStats indexShardCount)doublethe average number primary shards across the indicesdoubleaverage replication factor across the indices.doubleaverage number of shards (primary+replicas) across the indicesintnumber of indices in the clusterintthe maximum number of primary shards an index hasdoublemaximum replication factor across the indices.intthe maximum number of shards (primary+replicas) an index hasintthe minimum number of primary shards an index hasdoubleminimum replication factor across the indices.intthe minimum number of shards (primary+replicas) an index hasinttotal number of primary shards in the clusterdoublereturns how many *redundant* copies of the data the cluster holds - running with no replicas will return 0intgetTotal()total number of shards in the clustertoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.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. SeegetReplication() -
getAvgIndexReplication
public double getAvgIndexReplication()average replication factor across the indices. SeegetReplication() -
getMaxIndexReplication
public double getMaxIndexReplication()maximum replication factor across the indices. SeegetReplication() -
addIndexShardCount
-
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:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
IOException
-
toString
-