Module org.elasticsearch.server
Class TransportSimulateTemplateAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
org.elasticsearch.action.support.local.TransportLocalClusterStateAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
org.elasticsearch.action.admin.indices.template.post.TransportSimulateTemplateAction
public class TransportSimulateTemplateAction
extends TransportLocalClusterStateAction<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.local.TransportLocalClusterStateAction
clusterService, executorFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportSimulateTemplateAction(TransportService transportService, ClusterService clusterService, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, NamedXContentRegistry xContentRegistry, IndicesService indicesService, SystemIndices systemIndices, IndexSettingProviders indexSettingProviders) NB prior to 9.0 this was a TransportMasterNodeReadAction so for BwC it must be registered with the TransportService until we no longer need to support calling this action remotely. -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(SimulateTemplateAction.Request request, ClusterState state) protected voidlocalClusterStateOperation(Task task, SimulateTemplateAction.Request request, ClusterState state, ActionListener<SimulateIndexTemplateResponse> listener) Methods inherited from class org.elasticsearch.action.support.local.TransportLocalClusterStateAction
doExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
TransportSimulateTemplateAction
@Inject public TransportSimulateTemplateAction(TransportService transportService, ClusterService clusterService, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, NamedXContentRegistry xContentRegistry, IndicesService indicesService, SystemIndices systemIndices, IndexSettingProviders indexSettingProviders) NB prior to 9.0 this was a TransportMasterNodeReadAction so for BwC it must be registered with the TransportService until we no longer need to support calling this action remotely.
-
-
Method Details
-
localClusterStateOperation
protected void localClusterStateOperation(Task task, SimulateTemplateAction.Request request, ClusterState state, ActionListener<SimulateIndexTemplateResponse> listener) throws Exception - Specified by:
localClusterStateOperationin classTransportLocalClusterStateAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse> - Throws:
Exception
-
checkBlock
protected ClusterBlockException checkBlock(SimulateTemplateAction.Request request, ClusterState state) - Specified by:
checkBlockin classTransportLocalClusterStateAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
-