public class CloseIndexRequest extends AcknowledgedRequest<CloseIndexRequest > implements IndicesRequest .Replaceable
TransportRequest.Empty IndicesRequest.Replaceable DEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
CloseIndexRequest(String
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
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
Specifies what type of requested indices to ignore and how to deal wild wildcard expressions.
|
void |
readFrom(StreamInput
|
ActionRequestValidationException |
validate()
|
void |
writeTo(StreamOutput
|
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeoutmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutlistenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmasterNodeTimeoutpublic CloseIndexRequest(String... indices)
public ActionRequestValidationExceptionvalidate()
public String[] indices()
indices in interface
IndicesRequest
public CloseIndexRequestindices(String ... indices)
indices in interface
IndicesRequest.Replaceable
indices - the indices to be closed
public IndicesOptionsindicesOptions()
indicesOptions in interface
IndicesRequest
public CloseIndexRequestindicesOptions(IndicesOptions indicesOptions)
indicesOptions - the desired behaviour regarding indices to ignore and wildcard indices expressions
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
readFrom in class
MasterNodeOperationRequest<CloseIndexRequest>
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
writeTo in class
MasterNodeOperationRequest<CloseIndexRequest>
IOException