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

java.lang.Object
  extended by org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder<DeleteIndexRequest,DeleteIndexResponse>
      extended by org.elasticsearch.action.admin.indices.delete.DeleteIndexRequestBuilder
All Implemented Interfaces:
ActionRequestBuilder<DeleteIndexRequest,DeleteIndexResponse>

public class DeleteIndexRequestBuilder
extends BaseIndicesRequestBuilder<DeleteIndexRequest,DeleteIndexResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder
client, request
 
Constructor Summary
DeleteIndexRequestBuilder(IndicesAdminClient indicesClient, String... indices)
           
 
Method Summary
protected  void doExecute(ActionListener<DeleteIndexResponse> listener)
           
 DeleteIndexRequestBuilder setMasterNodeTimeout(String timeout)
          Sets the master node timeout in case the master has not yet been discovered.
 DeleteIndexRequestBuilder setMasterNodeTimeout(TimeValue timeout)
          Sets the master node timeout in case the master has not yet been discovered.
 DeleteIndexRequestBuilder setTimeout(String timeout)
          Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
 DeleteIndexRequestBuilder setTimeout(TimeValue timeout)
          Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
 
Methods inherited from class org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder
execute, execute, request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteIndexRequestBuilder

public DeleteIndexRequestBuilder(IndicesAdminClient indicesClient,
                                 String... indices)
Method Detail

setTimeout

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


setTimeout

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


setMasterNodeTimeout

public DeleteIndexRequestBuilder setMasterNodeTimeout(TimeValue timeout)
Sets the master node timeout in case the master has not yet been discovered.


setMasterNodeTimeout

public DeleteIndexRequestBuilder setMasterNodeTimeout(String timeout)
Sets the master node timeout in case the master has not yet been discovered.


doExecute

protected void doExecute(ActionListener<DeleteIndexResponse> listener)
Specified by:
doExecute in class BaseIndicesRequestBuilder<DeleteIndexRequest,DeleteIndexResponse>


Copyright © 2009-2012. All Rights Reserved.