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, localConnection, taskManager
-
Constructor Summary
ConstructorDescriptionTransportSimulateTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, IndicesService indicesService)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock(SimulateTemplateAction.Request request, ClusterState state)
protected void
masterOperation(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, getMasterActionName, masterOperation
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportSimulateTemplateAction
@Inject public TransportSimulateTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, IndicesService indicesService)
-
-
Method Details
-
masterOperation
protected void masterOperation(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>
-