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<PutIndexTemplateRequest,AcknowledgedResponse>
-
- org.elasticsearch.action.admin.indices.template.put.TransportPutIndexTemplateAction
-
public class TransportPutIndexTemplateAction extends TransportMasterNodeAction<PutIndexTemplateRequest,AcknowledgedResponse>
Put index template 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, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportPutIndexTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndexScopedSettings indexScopedSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(PutIndexTemplateRequest request, ClusterState state)protected Stringexecutor()protected voidmasterOperation(PutIndexTemplateRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)protected AcknowledgedResponseread(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
-
TransportPutIndexTemplateAction
@Inject public TransportPutIndexTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndexScopedSettings indexScopedSettings)
-
-
Method Detail
-
executor
protected String executor()
- Specified by:
executorin classTransportMasterNodeAction<PutIndexTemplateRequest,AcknowledgedResponse>
-
read
protected AcknowledgedResponse read(StreamInput in) throws IOException
- Specified by:
readin classTransportMasterNodeAction<PutIndexTemplateRequest,AcknowledgedResponse>- Throws:
IOException
-
checkBlock
protected ClusterBlockException checkBlock(PutIndexTemplateRequest request, ClusterState state)
- Specified by:
checkBlockin classTransportMasterNodeAction<PutIndexTemplateRequest,AcknowledgedResponse>
-
masterOperation
protected void masterOperation(PutIndexTemplateRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)
- Specified by:
masterOperationin classTransportMasterNodeAction<PutIndexTemplateRequest,AcknowledgedResponse>
-
-