public static class ClusterStatsIndices.ShardStats extends Object implements ToXContent, Streamable
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| コンストラクタと説明 |
|---|
ShardStats() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.