org.elasticsearch.action.admin.indices.open
Class OpenIndexRequestBuilder

java.lang.Object
  extended by org.elasticsearch.action.admin.indices.support.BaseIndicesRequestBuilder<OpenIndexRequest,OpenIndexResponse>
      extended by org.elasticsearch.action.admin.indices.open.OpenIndexRequestBuilder
All Implemented Interfaces:
ActionRequestBuilder<OpenIndexRequest,OpenIndexResponse>

public class OpenIndexRequestBuilder
extends BaseIndicesRequestBuilder<OpenIndexRequest,OpenIndexResponse>


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

OpenIndexRequestBuilder

public OpenIndexRequestBuilder(IndicesAdminClient indicesClient)

OpenIndexRequestBuilder

public OpenIndexRequestBuilder(IndicesAdminClient indicesClient,
                               String index)
Method Detail

setIndex

public OpenIndexRequestBuilder setIndex(String index)

setTimeout

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


setTimeout

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


setMasterNodeTimeout

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


setMasterNodeTimeout

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


doExecute

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


Copyright © 2009-2012. All Rights Reserved.