public class ClusterHealthRequest extends MasterNodeReadOperationRequest<ClusterHealthRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.ReplaceablelocalDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
ClusterHealthRequest(String... indices) |
local, local, readLocal, readLocal, writeLocal, writeLocalmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutlistenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic ClusterHealthRequest(String... indices)
public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic ClusterHealthRequest indices(String[] indices)
indices in interface IndicesRequest.Replaceablepublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic TimeValue timeout()
public ClusterHealthRequest timeout(TimeValue timeout)
public ClusterHealthRequest timeout(String timeout)
public ClusterHealthStatus waitForStatus()
public ClusterHealthRequest waitForStatus(ClusterHealthStatus waitForStatus)
public ClusterHealthRequest waitForGreenStatus()
public ClusterHealthRequest waitForYellowStatus()
public int waitForRelocatingShards()
public ClusterHealthRequest waitForRelocatingShards(int waitForRelocatingShards)
public int waitForActiveShards()
public ClusterHealthRequest waitForActiveShards(int waitForActiveShards)
public String waitForNodes()
public ClusterHealthRequest waitForNodes(String waitForNodes)
public ClusterHealthRequest waitForEvents(Priority waitForEvents)
public Priority waitForEvents()
public ActionRequestValidationException validate()
validate in class ActionRequest<ClusterHealthRequest>public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class MasterNodeOperationRequest<ClusterHealthRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeOperationRequest<ClusterHealthRequest>IOExceptionCopyright © 2009–2016. All rights reserved.