Module org.elasticsearch.server
Class TransportCreateIndexAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<CreateIndexRequest,CreateIndexResponse>
org.elasticsearch.action.support.HandledTransportAction<CreateIndexRequest,CreateIndexResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
org.elasticsearch.action.admin.indices.create.TransportCreateIndexAction
- All Implemented Interfaces:
ActionWithReservedState<CreateIndexRequest>
public class TransportCreateIndexAction
extends TransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
Create index action.
-
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportCreateIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataCreateIndexService createIndexService, ActionFilters actionFilters, SystemIndices systemIndices, ProjectResolver projectResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(CreateIndexRequest request, ClusterState state) protected voidmasterOperation(Task task, CreateIndexRequest request, ClusterState state, ActionListener<CreateIndexResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute, validateForReservedStateMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportCreateIndexAction
@Inject public TransportCreateIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataCreateIndexService createIndexService, ActionFilters actionFilters, SystemIndices systemIndices, ProjectResolver projectResolver)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-
masterOperation
protected void masterOperation(Task task, CreateIndexRequest request, ClusterState state, ActionListener<CreateIndexResponse> listener) - Specified by:
masterOperationin classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-