public static class ClusterStatsIndices.ShardStats extends Object implements ToXContent, Streamable
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
|
void |
readFrom(StreamInput in) |
static ClusterStatsIndices.ShardStats |
readShardStats(StreamInput in) |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
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 static ClusterStatsIndices.ShardStats readShardStats(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.