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<PutStoredScriptRequest,AcknowledgedResponse>
org.elasticsearch.action.admin.cluster.storedscripts.TransportPutStoredScriptAction
public class TransportPutStoredScriptAction extends TransportMasterNodeAction<PutStoredScriptRequest,AcknowledgedResponse>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
Constructors Constructor Description TransportPutStoredScriptAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ScriptService scriptService)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockException
checkBlock(PutStoredScriptRequest request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(PutStoredScriptRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)
protected AcknowledgedResponse
read(StreamInput in)
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperation
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportPutStoredScriptAction
@Inject public TransportPutStoredScriptAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ScriptService scriptService)
-
-
Method Details
-
executor
protected java.lang.String executor()- Specified by:
executor
in classTransportMasterNodeAction<PutStoredScriptRequest,AcknowledgedResponse>
-
read
- Specified by:
read
in classTransportMasterNodeAction<PutStoredScriptRequest,AcknowledgedResponse>
- Throws:
java.io.IOException
-
masterOperation
protected void masterOperation(PutStoredScriptRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener) throws java.lang.Exception- Specified by:
masterOperation
in classTransportMasterNodeAction<PutStoredScriptRequest,AcknowledgedResponse>
- Throws:
java.lang.Exception
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<PutStoredScriptRequest,AcknowledgedResponse>
-