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, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportSimulateTemplateAction(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 ClusterBlockExceptioncheckBlock(SimulateTemplateAction.Request request, ClusterState state)protected voidmasterOperation(SimulateTemplateAction.Request request, ClusterState state, ActionListener<SimulateIndexTemplateResponse> listener)Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeReadAction
localExecuteMethods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, masterOperationMethods 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:
masterOperationin classTransportMasterNodeAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>- Throws:
Exception
-
checkBlock
protected ClusterBlockException checkBlock(SimulateTemplateAction.Request request, ClusterState state)- Specified by:
checkBlockin classTransportMasterNodeAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
-