public class ClusterHealthResponse extends ActionResponse implements Iterable<ClusterIndexHealth>, ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
ClusterHealthResponse(String clusterName,
String[] concreteIndices,
ClusterState clusterState)
needed for plugins BWC
|
ClusterHealthResponse(String clusterName,
String[] concreteIndices,
ClusterState clusterState,
int numberOfPendingTasks) |
Modifier and Type | Method and Description |
---|---|
int |
getActivePrimaryShards() |
int |
getActiveShards() |
List<String> |
getAllValidationFailures()
All the validation failures, including index level validation failures.
|
String |
getClusterName() |
Map<String,ClusterIndexHealth> |
getIndices() |
int |
getInitializingShards() |
int |
getNumberOfDataNodes() |
int |
getNumberOfNodes() |
int |
getNumberOfPendingTasks() |
int |
getRelocatingShards() |
ClusterHealthStatus |
getStatus() |
int |
getUnassignedShards() |
List<String> |
getValidationFailures()
The validation failures on the cluster level (without index validation failures).
|
boolean |
isTimedOut()
true if the waitForXXX has timeout out and did not match.
|
Iterator<ClusterIndexHealth> |
iterator() |
void |
readFrom(StreamInput in) |
static ClusterHealthResponse |
readResponseFrom(StreamInput in) |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ClusterHealthResponse(String clusterName, String[] concreteIndices, ClusterState clusterState)
public ClusterHealthResponse(String clusterName, String[] concreteIndices, ClusterState clusterState, int numberOfPendingTasks)
public String getClusterName()
public List<String> getValidationFailures()
public List<String> getAllValidationFailures()
public int getActiveShards()
public int getRelocatingShards()
public int getActivePrimaryShards()
public int getInitializingShards()
public int getUnassignedShards()
public int getNumberOfNodes()
public int getNumberOfDataNodes()
public int getNumberOfPendingTasks()
public boolean isTimedOut()
public ClusterHealthStatus getStatus()
public Map<String,ClusterIndexHealth> getIndices()
public Iterator<ClusterIndexHealth> iterator()
iterator
in interface Iterable<ClusterIndexHealth>
public static ClusterHealthResponse readResponseFrom(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionResponse
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2015. All rights reserved.