Class TransportCreateIndexAction
- java.lang.Object
-
- 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.
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, indexNameExpressionResolver, threadPool, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportCreateIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(CreateIndexRequest request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(CreateIndexRequest request, ClusterState state, ActionListener<CreateIndexResponse> listener)protected CreateIndexResponsenewResponse()protected CreateIndexResponseread(StreamInput in)-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperation
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportCreateIndexAction
@Inject public TransportCreateIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataCreateIndexService createIndexService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-
newResponse
protected CreateIndexResponse newResponse()
- Specified by:
newResponsein classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)method.
-
read
protected CreateIndexResponse read(StreamInput in) throws java.io.IOException
- Overrides:
readin classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>- Throws:
java.io.IOException
-
checkBlock
protected ClusterBlockException checkBlock(CreateIndexRequest request, ClusterState state)
- Specified by:
checkBlockin classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-
masterOperation
protected void masterOperation(CreateIndexRequest request, ClusterState state, ActionListener<CreateIndexResponse> listener)
- Specified by:
masterOperationin classTransportMasterNodeAction<CreateIndexRequest,CreateIndexResponse>
-
-