public static class ClusterStatsIndices.ShardStats extends java.lang.Object implements ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ShardStats() |
Modifier and Type | Method and Description |
---|---|
void |
addIndexShardCount(ClusterStatsIndices.ShardStats indexShardCount) |
double |
getAvgIndexPrimaryShards()
the average number primary shards across the indices
|
double |
getAvgIndexReplication()
average replication factor across the indices.
|
double |
getAvgIndexShards()
average number of shards (primary+replicas) across the indices
|
int |
getIndices()
number of indices in the cluster
|
int |
getMaxIndexPrimaryShards()
the maximum number of primary shards an index has
|
double |
getMaxIndexReplication()
maximum replication factor across the indices.
|
int |
getMaxIndexShards()
the maximum number of shards (primary+replicas) an index has
|
int |
getMinIndexPrimaryShards()
the minimum number of primary shards an index has
|
double |
getMinIndexReplication()
minimum replication factor across the indices.
|
int |
getMinIndexShards()
the minimum number of shards (primary+replicas) an index has
|
int |
getPrimaries()
total number of primary shards in the cluster
|
double |
getReplication()
returns how many *redundant* copies of the data the cluster holds - running with no replicas will return 0
|
int |
getTotal()
total number of shards in the cluster
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public int getIndices()
public int getTotal()
public int getPrimaries()
public double getReplication()
public int getMaxIndexShards()
public int getMinIndexShards()
public double getAvgIndexShards()
public int getMaxIndexPrimaryShards()
public int getMinIndexPrimaryShards()
public double getAvgIndexPrimaryShards()
public double getMinIndexReplication()
getReplication()
public double getAvgIndexReplication()
getReplication()
public double getMaxIndexReplication()
getReplication()
public void addIndexShardCount(ClusterStatsIndices.ShardStats indexShardCount)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object