Module org.elasticsearch.server
Class TransportSimulateTemplateAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeReadAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
org.elasticsearch.action.admin.indices.template.post.TransportSimulateTemplateAction
public class TransportSimulateTemplateAction
extends TransportMasterNodeReadAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
Handles simulating an index template either by name (looking it up in the
cluster state), or by a provided template configuration
-
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
ConstructorDescriptionTransportSimulateTemplateAction
(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, NamedXContentRegistry xContentRegistry, IndicesService indicesService, SystemIndices systemIndices, IndexSettingProviders indexSettingProviders) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock
(SimulateTemplateAction.Request request, ClusterState state) protected void
masterOperation
(Task task, SimulateTemplateAction.Request request, ClusterState state, ActionListener<SimulateIndexTemplateResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeReadAction
localExecute
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, modifiedKeys, reservedStateHandlerName
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute
-
Constructor Details
-
TransportSimulateTemplateAction
@Inject public TransportSimulateTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, NamedXContentRegistry xContentRegistry, IndicesService indicesService, SystemIndices systemIndices, IndexSettingProviders indexSettingProviders)
-
-
Method Details
-
masterOperation
protected void masterOperation(Task task, SimulateTemplateAction.Request request, ClusterState state, ActionListener<SimulateIndexTemplateResponse> listener) throws Exception - Specified by:
masterOperation
in classTransportMasterNodeAction<SimulateTemplateAction.Request,
SimulateIndexTemplateResponse> - Throws:
Exception
-
checkBlock
protected ClusterBlockException checkBlock(SimulateTemplateAction.Request request, ClusterState state) - Specified by:
checkBlock
in classTransportMasterNodeAction<SimulateTemplateAction.Request,
SimulateIndexTemplateResponse>
-