Class TransportCreateIndexAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.HandledTransportAction<Request,Response>
-
- org.elasticsearch.action.support.master.TransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-
- org.elasticsearch.action.admin.indices.create.TransportCreateIndexAction
-
public class TransportCreateIndexAction extends TransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
Create index action.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.HandledTransportAction
HandledTransportAction.ChannelActionListener<Response extends TransportResponse,Request extends TransportRequest>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
logger
-
-
Constructor Summary
Constructors Constructor Description TransportCreateIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClusterBlockException
checkBlock(CreateIndexRequest request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(CreateIndexRequest request, ClusterState state, ActionListener<CreateIndexResponse> listener)
protected CreateIndexResponse
newResponse()
-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, doExecute, getMasterActionName, localExecute, masterOperation, read
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportCreateIndexAction
@Inject public TransportCreateIndexAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executor
in classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-
newResponse
protected CreateIndexResponse newResponse()
- Specified by:
newResponse
in classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)
method.
-
checkBlock
protected ClusterBlockException checkBlock(CreateIndexRequest request, ClusterState state)
- Specified by:
checkBlock
in classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-
masterOperation
protected void masterOperation(CreateIndexRequest request, ClusterState state, ActionListener<CreateIndexResponse> listener)
- Specified by:
masterOperation
in classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-
-