org.elasticsearch.action.admin.cluster.health
Class ClusterHealthResponse
java.lang.Object
org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse
- All Implemented Interfaces:
- Iterable<ClusterIndexHealth>, ActionResponse, Streamable
public class ClusterHealthResponse
- extends Object
- implements ActionResponse, Iterable<ClusterIndexHealth>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterHealthResponse
public ClusterHealthResponse(String clusterName,
List<String> validationFailures)
clusterName
public String clusterName()
getClusterName
public String getClusterName()
validationFailures
public List<String> validationFailures()
- The validation failures on the cluster level (without index validation failures).
getValidationFailures
public List<String> getValidationFailures()
- The validation failures on the cluster level (without index validation failures).
allValidationFailures
public List<String> allValidationFailures()
- All the validation failures, including index level validation failures.
getAllValidationFailures
public List<String> getAllValidationFailures()
- All the validation failures, including index level validation failures.
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()
numberOfNodes
public int numberOfNodes()
getNumberOfNodes
public int getNumberOfNodes()
numberOfDataNodes
public int numberOfDataNodes()
getNumberOfDataNodes
public int getNumberOfDataNodes()
timedOut
public boolean timedOut()
- true if the waitForXXX has timeout out and did not match.
isTimedOut
public boolean isTimedOut()
status
public ClusterHealthStatus status()
getStatus
public ClusterHealthStatus getStatus()
indices
public Map<String,ClusterIndexHealth> indices()
getIndices
public Map<String,ClusterIndexHealth> getIndices()
iterator
public Iterator<ClusterIndexHealth> iterator()
- Specified by:
iterator
in interface Iterable<ClusterIndexHealth>
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.