public class ClusterHealthResponse extends ActionResponse implements Iterable<ClusterIndexHealth>, ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Constructor and Description |
|---|
ClusterHealthResponse(String clusterName,
String[] concreteIndices,
ClusterState clusterState)
needed for plugins BWC
|
ClusterHealthResponse(String clusterName,
String[] concreteIndices,
ClusterState clusterState,
int numberOfPendingTasks,
int numberOfInFlightFetch,
int delayedUnassignedShards) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActivePrimaryShards() |
int |
getActiveShards() |
List<String> |
getAllValidationFailures()
All the validation failures, including index level validation failures.
|
String |
getClusterName() |
int |
getDelayedUnassignedShards()
The number of unassigned shards that are currently being delayed (for example,
due to node leaving the cluster and waiting for a timeout for the node to come
back in order to allocate the shards back to it).
|
Map<String,ClusterIndexHealth> |
getIndices() |
int |
getInitializingShards() |
int |
getNumberOfDataNodes() |
int |
getNumberOfInFlightFetch() |
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) |
putHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ClusterHealthResponse(String clusterName, String[] concreteIndices, ClusterState clusterState)
public ClusterHealthResponse(String clusterName, String[] concreteIndices, ClusterState clusterState, int numberOfPendingTasks, int numberOfInFlightFetch, int delayedUnassignedShards)
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 int getNumberOfInFlightFetch()
public int getDelayedUnassignedShards()
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
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.