public class PutWarmerRequest extends AcknowledgedRequest<PutWarmerRequest> implements IndicesRequest.Replaceable
SearchRequest
with a name in the cluster that is
in-turn used to warm up indices before they are available for search.
Note: neither the search request nor the name must be null
TransportRequest.Empty
IndicesRequest.Replaceable
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
headers
Constructor and Description |
---|
PutWarmerRequest() |
PutWarmerRequest(String name)
Constructs a new warmer.
|
Modifier and Type | Method and Description |
---|---|
String[] |
indices()
Returns the array of indices that the action relates to
|
IndicesRequest |
indices(String[] indices) |
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
String |
name() |
PutWarmerRequest |
name(String name)
Sets the name of the warmer.
|
void |
readFrom(StreamInput in) |
SearchRequest |
searchRequest() |
PutWarmerRequest |
searchRequest(SearchRequest searchRequest)
Sets the search request to warm.
|
PutWarmerRequest |
searchRequest(SearchRequestBuilder searchRequest)
Sets the search request to warm.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeout
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
createTask, createTask, setParentTask
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
masterNodeTimeout
public PutWarmerRequest()
public PutWarmerRequest(String name)
name
- The name of the warmer.public PutWarmerRequest name(String name)
public String name()
public PutWarmerRequest searchRequest(SearchRequest searchRequest)
public PutWarmerRequest searchRequest(SearchRequestBuilder searchRequest)
public SearchRequest searchRequest()
public ActionRequestValidationException validate()
validate
in class ActionRequest<PutWarmerRequest>
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesRequest indices(String[] indices)
indices
in interface IndicesRequest.Replaceable
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeRequest<PutWarmerRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<PutWarmerRequest>
IOException
Copyright © 2009–2016. All rights reserved.