Module org.elasticsearch.server
Class TransportPutStoredScriptAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<Request,AcknowledgedResponse>
org.elasticsearch.action.support.master.AcknowledgedTransportMasterNodeAction<PutStoredScriptRequest>
org.elasticsearch.action.admin.cluster.storedscripts.TransportPutStoredScriptAction
public class TransportPutStoredScriptAction
extends AcknowledgedTransportMasterNodeAction<PutStoredScriptRequest>
-
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
ConstructorDescriptionTransportPutStoredScriptAction
(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ScriptService scriptService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock
(PutStoredScriptRequest request, ClusterState state) protected void
masterOperation
(Task task, PutStoredScriptRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute, modifiedKeys, reservedStateHandlerName
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute
-
Constructor Details
-
TransportPutStoredScriptAction
@Inject public TransportPutStoredScriptAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ScriptService scriptService)
-
-
Method Details
-
masterOperation
protected void masterOperation(Task task, PutStoredScriptRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) throws Exception - Specified by:
masterOperation
in classTransportMasterNodeAction<PutStoredScriptRequest,
AcknowledgedResponse> - Throws:
Exception
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<PutStoredScriptRequest,
AcknowledgedResponse>
-