Module org.elasticsearch.server
Class TransportPutIndexTemplateAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<Request,AcknowledgedResponse>
org.elasticsearch.action.support.master.AcknowledgedTransportMasterNodeAction<PutIndexTemplateRequest>
org.elasticsearch.action.admin.indices.template.put.TransportPutIndexTemplateAction
- All Implemented Interfaces:
ActionWithReservedState<PutIndexTemplateRequest>
public class TransportPutIndexTemplateAction
extends AcknowledgedTransportMasterNodeAction<PutIndexTemplateRequest>
Put index template action.
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
ConstructorDescriptionTransportPutIndexTemplateAction
(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndexScopedSettings indexScopedSettings) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock
(PutIndexTemplateRequest request, ClusterState state) protected void
masterOperation
(Task task, PutIndexTemplateRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Constructor Details
-
TransportPutIndexTemplateAction
@Inject public TransportPutIndexTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndexScopedSettings indexScopedSettings)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<PutIndexTemplateRequest,
AcknowledgedResponse>
-
masterOperation
protected void masterOperation(Task task, PutIndexTemplateRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) throws IOException - Specified by:
masterOperation
in classTransportMasterNodeAction<PutIndexTemplateRequest,
AcknowledgedResponse> - Throws:
IOException
-