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

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.TransportAction<Request,Response>
          extended by org.elasticsearch.action.support.master.TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>
              extended by org.elasticsearch.action.admin.indices.create.TransportCreateIndexAction

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.TransportAction
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  String executor()
           
protected  CreateIndexResponse masterOperation(CreateIndexRequest request, ClusterState state)
           
protected  CreateIndexRequest newRequest()
           
protected  CreateIndexResponse newResponse()
           
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
doExecute, localExecute, processBeforeDelegationToMaster
 
Methods inherited from class org.elasticsearch.action.support.TransportAction
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 String executor()
Specified by:
executor in class TransportMasterNodeOperationAction<CreateIndexRequest,CreateIndexResponse>

transportAction

protected 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


Copyright © 2009-2012. All Rights Reserved.