org.elasticsearch.action.admin.indices.delete
Class DeleteIndexRequest

java.lang.Object
  extended by org.elasticsearch.action.support.master.MasterNodeOperationRequest
      extended by org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest
All Implemented Interfaces:
ActionRequest, Streamable

public class DeleteIndexRequest
extends MasterNodeOperationRequest

A request to delete an index. Best created with Requests.deleteIndexRequest(String).


Constructor Summary
DeleteIndexRequest(java.lang.String index)
          Constructs a new delete index request for the specified index.
 
Method Summary
 void readFrom(StreamInput in)
           
 DeleteIndexRequest timeout(TimeValue timeout)
          Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
 ActionRequestValidationException validate()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest
listenerThreaded, listenerThreaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteIndexRequest

public DeleteIndexRequest(java.lang.String index)
Constructs a new delete index request for the specified index.

Method Detail

validate

public ActionRequestValidationException validate()

timeout

public DeleteIndexRequest timeout(TimeValue timeout)
Timeout to wait for the index deletion to be acknowledged by current cluster nodes. Defaults to 10s.


readFrom

public void readFrom(StreamInput in)
              throws java.io.IOException
Specified by:
readFrom in interface Streamable
Overrides:
readFrom in class MasterNodeOperationRequest
Throws:
java.io.IOException

writeTo

public void writeTo(StreamOutput out)
             throws java.io.IOException
Specified by:
writeTo in interface Streamable
Overrides:
writeTo in class MasterNodeOperationRequest
Throws:
java.io.IOException