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) |
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)
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
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–2015. All rights reserved.