Module org.elasticsearch.server
Class TransportSimulateTemplateAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
org.elasticsearch.action.support.HandledTransportAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
org.elasticsearch.action.support.master.TransportMasterNodeReadAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
org.elasticsearch.action.admin.indices.template.post.TransportSimulateTemplateAction
- All Implemented Interfaces:
ActionWithReservedState<SimulateTemplateAction.Request>
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, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportSimulateTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, NamedXContentRegistry xContentRegistry, IndicesService indicesService, SystemIndices systemIndices, IndexSettingProviders indexSettingProviders) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(SimulateTemplateAction.Request request, ClusterState state) protected voidmasterOperation(Task task, 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
doExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Constructor Details
-
TransportSimulateTemplateAction
@Inject public TransportSimulateTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, 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:
masterOperationin classTransportMasterNodeAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse> - Throws:
Exception
-
checkBlock
protected ClusterBlockException checkBlock(SimulateTemplateAction.Request request, ClusterState state) - Specified by:
checkBlockin classTransportMasterNodeAction<SimulateTemplateAction.Request,SimulateIndexTemplateResponse>
-