org.elasticsearch.action.admin.indices.create
Class TransportCreateIndexAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.master.TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>
              extended by org.elasticsearch.action.admin.indices.create.TransportCreateIndexAction
All Implemented Interfaces:
Action<CreateIndexRequest,CreateIndexResponse>

public class TransportCreateIndexAction
extends TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>

Create index action.


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
clusterService, transportService
 
Fields inherited from class org.elasticsearch.action.support.BaseAction
threadPool
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportCreateIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService)
           
 
Method Summary
protected  ClusterBlockException checkBlock(CreateIndexRequest request, ClusterState state)
           
protected  java.lang.String executor()
           
protected  CreateIndexResponse masterOperation(CreateIndexRequest request, ClusterState state)
           
protected  CreateIndexRequest newRequest()
           
protected  CreateIndexResponse newResponse()
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
doExecute, localExecute, processBeforeDelegationToMaster
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
execute, execute
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportCreateIndexAction

@Inject
public TransportCreateIndexAction(Settings settings,
                                         TransportService transportService,
                                         ClusterService clusterService,
                                         ThreadPool threadPool,
                                         MetaDataCreateIndexService createIndexService)
Method Detail

executor

protected java.lang.String executor()
Specified by:
executor in class TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>

transportAction

protected java.lang.String transportAction()
Specified by:
transportAction in class TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>

newRequest

protected CreateIndexRequest newRequest()
Specified by:
newRequest in class TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>

newResponse

protected CreateIndexResponse newResponse()
Specified by:
newResponse in class TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>

checkBlock

protected ClusterBlockException checkBlock(CreateIndexRequest request,
                                           ClusterState state)
Overrides:
checkBlock in class TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>

masterOperation

protected CreateIndexResponse masterOperation(CreateIndexRequest request,
                                              ClusterState state)
                                       throws ElasticSearchException
Specified by:
masterOperation in class TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>
Throws:
ElasticSearchException