org.elasticsearch.action.admin.cluster.health
Class ClusterIndexHealth
java.lang.Object
org.elasticsearch.action.admin.cluster.health.ClusterIndexHealth
- All Implemented Interfaces:
- Iterable<ClusterShardHealth>, Streamable
public class ClusterIndexHealth
- extends Object
- implements Iterable<ClusterShardHealth>, Streamable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterIndexHealth
public ClusterIndexHealth(String index,
int numberOfShards,
int numberOfReplicas,
List<String> validationFailures)
index
public String index()
getIndex
public String getIndex()
validationFailures
public List<String> validationFailures()
getValidationFailures
public List<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 Map<Integer,ClusterShardHealth> shards()
getShards
public Map<Integer,ClusterShardHealth> getShards()
iterator
public Iterator<ClusterShardHealth> iterator()
- Specified by:
iterator
in interface Iterable<ClusterShardHealth>
readClusterIndexHealth
public static ClusterIndexHealth readClusterIndexHealth(StreamInput in)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.