public class ClusterHealthResponse extends ActionResponse implements Iterable<ClusterIndexHealth>, ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
headers
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,
int numberOfInFlightFetch) |
putHeader, remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, 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, int numberOfInFlightFetch)
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 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.