Package org.elasticsearch.persistent
Class CompletionPersistentTaskAction.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<CompletionPersistentTaskAction.Request,PersistentTaskResponse>
-
- org.elasticsearch.persistent.CompletionPersistentTaskAction.TransportAction
-
- Enclosing class:
- CompletionPersistentTaskAction
public static class CompletionPersistentTaskAction.TransportAction extends TransportMasterNodeAction<CompletionPersistentTaskAction.Request,PersistentTaskResponse>
-
-
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, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockException
checkBlock(CompletionPersistentTaskAction.Request request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(CompletionPersistentTaskAction.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, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executor
in classTransportMasterNodeAction<CompletionPersistentTaskAction.Request,PersistentTaskResponse>
-
newResponse
protected PersistentTaskResponse newResponse()
- Specified by:
newResponse
in classTransportMasterNodeAction<CompletionPersistentTaskAction.Request,PersistentTaskResponse>
- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)
method.
-
checkBlock
protected ClusterBlockException checkBlock(CompletionPersistentTaskAction.Request request, ClusterState state)
- Specified by:
checkBlock
in classTransportMasterNodeAction<CompletionPersistentTaskAction.Request,PersistentTaskResponse>
-
masterOperation
protected final void masterOperation(CompletionPersistentTaskAction.Request request, ClusterState state, ActionListener<PersistentTaskResponse> listener)
- Specified by:
masterOperation
in classTransportMasterNodeAction<CompletionPersistentTaskAction.Request,PersistentTaskResponse>
-
-