public class DeleteIndexRequest extends MasterNodeRequest<DeleteIndexRequest> implements IndicesRequest.Replaceable
Requests.deleteIndexRequest(String)
.TransportRequest.Empty
IndicesRequest.Replaceable
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
headers
Constructor and Description |
---|
DeleteIndexRequest() |
DeleteIndexRequest(String... indices)
Constructs a new delete index request for the specified indices.
|
DeleteIndexRequest(String index)
Constructs a new delete index request for the specified index.
|
Modifier and Type | Method and Description |
---|---|
String[] |
indices()
The index to delete.
|
DeleteIndexRequest |
indices(String... indices) |
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
DeleteIndexRequest |
indicesOptions(IndicesOptions indicesOptions) |
void |
readFrom(StreamInput in) |
TimeValue |
timeout()
Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
|
DeleteIndexRequest |
timeout(String timeout)
Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
|
DeleteIndexRequest |
timeout(TimeValue timeout)
Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
createTask, createTask, setParentTask
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public DeleteIndexRequest()
public DeleteIndexRequest(String index)
index
- The index to delete. Use "_all" to delete all indices.public DeleteIndexRequest(String... indices)
indices
- The indices to delete. Use "_all" to delete all indices.public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public DeleteIndexRequest indicesOptions(IndicesOptions indicesOptions)
public ActionRequestValidationException validate()
validate
in class ActionRequest<DeleteIndexRequest>
public DeleteIndexRequest indices(String... indices)
indices
in interface IndicesRequest.Replaceable
public String[] indices()
indices
in interface IndicesRequest
public TimeValue timeout()
public DeleteIndexRequest timeout(TimeValue timeout)
public DeleteIndexRequest timeout(String timeout)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeRequest<DeleteIndexRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<DeleteIndexRequest>
IOException
Copyright © 2009–2016. All rights reserved.