public class CloseIndexRequest extends AcknowledgedRequest<CloseIndexRequest> implements IndicesRequest.Replaceable
TransportRequest.Empty
IndicesRequest.Replaceable
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
headers
Constructor and Description |
---|
CloseIndexRequest() |
CloseIndexRequest(String... indices)
Constructs a new close index request for the specified index.
|
Modifier and Type | Method and Description |
---|---|
String[] |
indices()
The indices to be closed
|
CloseIndexRequest |
indices(String... indices)
Sets the indices to be closed
|
IndicesOptions |
indicesOptions()
Specifies what type of requested indices to ignore and how to deal with wildcard expressions.
|
CloseIndexRequest |
indicesOptions(IndicesOptions indicesOptions)
Specifies what type of requested indices to ignore and how to deal wild wildcard expressions.
|
void |
readFrom(StreamInput in) |
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 CloseIndexRequest()
public CloseIndexRequest(String... indices)
public ActionRequestValidationException validate()
validate
in class ActionRequest<CloseIndexRequest>
public String[] indices()
indices
in interface IndicesRequest
public CloseIndexRequest indices(String... indices)
indices
in interface IndicesRequest.Replaceable
indices
- the indices to be closedpublic IndicesOptions indicesOptions()
indicesOptions
in interface IndicesRequest
public CloseIndexRequest indicesOptions(IndicesOptions indicesOptions)
indicesOptions
- the desired behaviour regarding indices to ignore and wildcard indices expressionspublic void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeRequest<CloseIndexRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<CloseIndexRequest>
IOException
Copyright © 2009–2016. All rights reserved.