Package org.elasticsearch.persistent
Class StartPersistentTaskAction.TransportAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
org.elasticsearch.persistent.StartPersistentTaskAction.TransportAction
- Enclosing class:
- StartPersistentTaskAction
public static class StartPersistentTaskAction.TransportAction extends TransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, indexNameExpressionResolver, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
Constructors Constructor Description TransportAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, PersistentTasksClusterService persistentTasksClusterService, PersistentTasksExecutorRegistry persistentTasksExecutorRegistry, PersistentTasksService persistentTasksService, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(StartPersistentTaskAction.Request request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(StartPersistentTaskAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)protected PersistentTaskResponseread(StreamInput in)Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperationMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportAction
@Inject public TransportAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, PersistentTasksClusterService persistentTasksClusterService, PersistentTasksExecutorRegistry persistentTasksExecutorRegistry, PersistentTasksService persistentTasksService, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
executor
protected java.lang.String executor()- Specified by:
executorin classTransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
-
read
- Specified by:
readin classTransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>- Throws:
java.io.IOException
-
checkBlock
protected ClusterBlockException checkBlock(StartPersistentTaskAction.Request request, ClusterState state)- Specified by:
checkBlockin classTransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
-
masterOperation
protected final void masterOperation(StartPersistentTaskAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)- Specified by:
masterOperationin classTransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
-