Module org.elasticsearch.server
Class TransportPutStoredScriptAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<PutStoredScriptRequest,AcknowledgedResponse>
org.elasticsearch.action.support.HandledTransportAction<PutStoredScriptRequest,AcknowledgedResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<PutStoredScriptRequest,AcknowledgedResponse>
org.elasticsearch.action.support.master.AcknowledgedTransportMasterNodeAction<PutStoredScriptRequest>
org.elasticsearch.action.admin.cluster.storedscripts.TransportPutStoredScriptAction
- All Implemented Interfaces:
ActionWithReservedState<PutStoredScriptRequest>
public class TransportPutStoredScriptAction
extends AcknowledgedTransportMasterNodeAction<PutStoredScriptRequest>
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionTransportPutStoredScriptAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, ScriptService scriptService, ProjectResolver projectResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(PutStoredScriptRequest request, ClusterState state) protected voidmasterOperation(Task task, PutStoredScriptRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute, validateForReservedStateMethods 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
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportPutStoredScriptAction
@Inject public TransportPutStoredScriptAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, ScriptService scriptService, ProjectResolver projectResolver)
-
-
Method Details
-
masterOperation
protected void masterOperation(Task task, PutStoredScriptRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) throws Exception - Specified by:
masterOperationin classTransportMasterNodeAction<PutStoredScriptRequest,AcknowledgedResponse> - Throws:
Exception
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<PutStoredScriptRequest,AcknowledgedResponse>
-