org.elasticsearch.action.admin.indices.close
Class CloseIndexRequestBuilder

java.lang.Object
  extended by org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder<CloseIndexRequest,CloseIndexResponse>
      extended by org.elasticsearch.action.admin.indices.close.CloseIndexRequestBuilder
All Implemented Interfaces:
ActionRequestBuilder<CloseIndexRequest,CloseIndexResponse>

public class CloseIndexRequestBuilder
extends BaseIndicesRequestBuilder<CloseIndexRequest,CloseIndexResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder
client, request
 
Constructor Summary
CloseIndexRequestBuilder(IndicesAdminClient indicesClient)
           
CloseIndexRequestBuilder(IndicesAdminClient indicesClient, String index)
           
 
Method Summary
protected  void doExecute(ActionListener<CloseIndexResponse> listener)
           
 CloseIndexRequestBuilder setIndex(String index)
           
 CloseIndexRequestBuilder setMasterNodeTimeout(String timeout)
          Sets the master node timeout in case the master has not yet been discovered.
 CloseIndexRequestBuilder setMasterNodeTimeout(TimeValue timeout)
          Sets the master node timeout in case the master has not yet been discovered.
 CloseIndexRequestBuilder setTimeout(String timeout)
          Timeout to wait for the index deletion to be acknowledged by current cluster nodes.
 CloseIndexRequestBuilder setTimeout(TimeValue timeout)
          Timeout to wait for the operation 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

CloseIndexRequestBuilder

public CloseIndexRequestBuilder(IndicesAdminClient indicesClient)

CloseIndexRequestBuilder

public CloseIndexRequestBuilder(IndicesAdminClient indicesClient,
                                String index)
Method Detail

setIndex

public CloseIndexRequestBuilder setIndex(String index)

setTimeout

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


setTimeout

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


setMasterNodeTimeout

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


setMasterNodeTimeout

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


doExecute

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


Copyright © 2009-2012. All Rights Reserved.