Package org.elasticsearch.persistent
Class StartPersistentTaskAction.TransportAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- 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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.HandledTransportAction
HandledTransportAction.ChannelActionListener<Response extends TransportResponse,Request extends TransportRequest>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
logger
-
-
Constructor Summary
Constructors Constructor Description TransportAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, PersistentTasksClusterService persistentTasksClusterService, PersistentTasksExecutorRegistry persistentTasksExecutorRegistry, PersistentTasksService persistentTasksService, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClusterBlockException
checkBlock(StartPersistentTaskAction.Request request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(StartPersistentTaskAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)
protected PersistentTaskResponse
newResponse()
-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, doExecute, getMasterActionName, localExecute, masterOperation, read
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportAction
@Inject public TransportAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, PersistentTasksClusterService persistentTasksClusterService, PersistentTasksExecutorRegistry persistentTasksExecutorRegistry, PersistentTasksService persistentTasksService, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executor
in classTransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
-
newResponse
protected PersistentTaskResponse newResponse()
- Specified by:
newResponse
in classTransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)
method.
-
checkBlock
protected ClusterBlockException checkBlock(StartPersistentTaskAction.Request request, ClusterState state)
- Specified by:
checkBlock
in classTransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
-
masterOperation
protected final void masterOperation(StartPersistentTaskAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)
- Specified by:
masterOperation
in classTransportMasterNodeAction<StartPersistentTaskAction.Request,PersistentTaskResponse>
-
-