public class ClusterHealthRequest extends MasterNodeReadRequest<ClusterHealthRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.ReplaceablelocalDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
ClusterHealthRequest() |
ClusterHealthRequest(String... indices) |
local, localmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutcreateTask, createTask, setParentTaskgetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic ClusterHealthRequest()
public 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 MasterNodeReadRequest<ClusterHealthRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeReadRequest<ClusterHealthRequest>IOExceptionCopyright © 2009–2017. All rights reserved.