org.elasticsearch.action.admin.cluster.health
Class ClusterIndexHealth
java.lang.Object
org.elasticsearch.action.admin.cluster.health.ClusterIndexHealth
- All Implemented Interfaces:
- java.lang.Iterable<ClusterShardHealth>, Streamable
public class ClusterIndexHealth
- extends java.lang.Object
- implements java.lang.Iterable<ClusterShardHealth>, Streamable
Constructor Summary |
ClusterIndexHealth(java.lang.String index,
int numberOfShards,
int numberOfReplicas,
java.util.List<java.lang.String> validationFailures)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterIndexHealth
public ClusterIndexHealth(java.lang.String index,
int numberOfShards,
int numberOfReplicas,
java.util.List<java.lang.String> validationFailures)
index
public java.lang.String index()
getIndex
public java.lang.String getIndex()
validationFailures
public java.util.List<java.lang.String> validationFailures()
getValidationFailures
public java.util.List<java.lang.String> getValidationFailures()
numberOfShards
public int numberOfShards()
getNumberOfShards
public int getNumberOfShards()
numberOfReplicas
public int numberOfReplicas()
getNumberOfReplicas
public int getNumberOfReplicas()
activeShards
public int activeShards()
getActiveShards
public int getActiveShards()
relocatingShards
public int relocatingShards()
getRelocatingShards
public int getRelocatingShards()
activePrimaryShards
public int activePrimaryShards()
getActivePrimaryShards
public int getActivePrimaryShards()
initializingShards
public int initializingShards()
getInitializingShards
public int getInitializingShards()
unassignedShards
public int unassignedShards()
getUnassignedShards
public int getUnassignedShards()
status
public ClusterHealthStatus status()
getStatus
public ClusterHealthStatus getStatus()
shards
public java.util.Map<java.lang.Integer,ClusterShardHealth> shards()
getShards
public java.util.Map<java.lang.Integer,ClusterShardHealth> getShards()
iterator
public java.util.Iterator<ClusterShardHealth> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<ClusterShardHealth>
readClusterIndexHealth
public static ClusterIndexHealth readClusterIndexHealth(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException