public final class ClusterIndexHealth extends java.lang.Object implements java.lang.Iterable<ClusterShardHealth>, Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ClusterIndexHealth(IndexMetaData indexMetaData,
IndexRoutingTable indexRoutingTable) |
ClusterIndexHealth(StreamInput in) |
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.Iterator<ClusterShardHealth> |
iterator() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public ClusterIndexHealth(IndexMetaData indexMetaData, IndexRoutingTable indexRoutingTable)
public ClusterIndexHealth(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.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 java.util.Map<java.lang.Integer,ClusterShardHealth> getShards()
public java.util.Iterator<ClusterShardHealth> iterator()
iterator
in interface java.lang.Iterable<ClusterShardHealth>
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException