public final class ClusterIndexHealth extends Object implements Iterable<ClusterShardHealth>, Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ClusterIndexHealth(IndexMetaData indexMetaData,
IndexRoutingTable indexRoutingTable) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActivePrimaryShards() |
int |
getActiveShards() |
String |
getIndex() |
int |
getInitializingShards() |
int |
getNumberOfReplicas() |
int |
getNumberOfShards() |
int |
getRelocatingShards() |
Map<Integer,ClusterShardHealth> |
getShards() |
ClusterHealthStatus |
getStatus() |
int |
getUnassignedShards() |
List<String> |
getValidationFailures() |
Iterator<ClusterShardHealth> |
iterator() |
static ClusterIndexHealth |
readClusterIndexHealth(StreamInput in) |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public ClusterIndexHealth(IndexMetaData indexMetaData, IndexRoutingTable indexRoutingTable)
public String getIndex()
public int getNumberOfShards()
public int getNumberOfReplicas()
public int getActiveShards()
public int getRelocatingShards()
public int getActivePrimaryShards()
public int getInitializingShards()
public int getUnassignedShards()
public ClusterHealthStatus getStatus()
public Map<Integer,ClusterShardHealth> getShards()
public Iterator<ClusterShardHealth> iterator()
iterator in interface Iterable<ClusterShardHealth>public static ClusterIndexHealth readClusterIndexHealth(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.