public final class ClusterIndexHealth extends java.lang.Object implements java.lang.Iterable<ClusterShardHealth>, Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ClusterIndexHealth(IndexMetaData indexMetaData,
IndexRoutingTable indexRoutingTable) |
Modifier and Type | Method and Description |
---|---|
int |
getActivePrimaryShards() |
int |
getActiveShards() |
java.lang.String |
getIndex() |
int |
getInitializingShards() |
int |
getNumberOfReplicas() |
int |
getNumberOfShards() |
int |
getRelocatingShards() |
java.util.Map<java.lang.Integer,ClusterShardHealth> |
getShards() |
ClusterHealthStatus |
getStatus() |
int |
getUnassignedShards() |
java.util.List<java.lang.String> |
getValidationFailures() |
java.util.Iterator<ClusterShardHealth> |
iterator() |
static ClusterIndexHealth |
readClusterIndexHealth(StreamInput in) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public ClusterIndexHealth(IndexMetaData indexMetaData, IndexRoutingTable indexRoutingTable)
public java.lang.String getIndex()
public java.util.List<java.lang.String> getValidationFailures()
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 java.util.Map<java.lang.Integer,ClusterShardHealth> getShards()
public java.util.Iterator<ClusterShardHealth> iterator()
iterator
in interface java.lang.Iterable<ClusterShardHealth>
public static ClusterIndexHealth readClusterIndexHealth(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException