public class ClusterHealthRequest extends MasterNodeReadOperationRequest<ClusterHealthRequest> implements IndicesRequest.Replaceable
TransportRequest.Empty
IndicesRequest.Replaceable
local
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
ClusterHealthRequest(String... indices) |
local, local, readLocal, readLocal, writeLocal, writeLocal
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
listenerThreaded, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
public ClusterHealthRequest(String... indices)
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public ClusterHealthRequest indices(String[] indices)
indices
in interface IndicesRequest.Replaceable
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public 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 Streamable
readFrom
in class MasterNodeOperationRequest<ClusterHealthRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeOperationRequest<ClusterHealthRequest>
IOException
Copyright © 2009–2015. All rights reserved.