Class TransportInstanceSingleOperationAction<Request extends InstanceShardOperationRequest<Request>,Response extends ActionResponse>
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.single.instance.TransportInstanceSingleOperationAction<Request,Response>
- Direct Known Subclasses:
TransportUpdateAction
public abstract class TransportInstanceSingleOperationAction<Request extends InstanceShardOperationRequest<Request>,Response extends ActionResponse>
extends HandledTransportAction<Request,Response>
-
Field Summary
Modifier and TypeFieldDescriptionprotected ClusterService
protected IndexNameExpressionResolver
protected ThreadPool
protected TransportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransportInstanceSingleOperationAction(String actionName, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Writeable.Reader<Request> request)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkGlobalBlock(ClusterState state)
protected ClusterBlockException
checkRequestBlock(ClusterState state, Request request)
protected void
doExecute(Task task, Request request, ActionListener<Response> listener)
protected abstract String
protected abstract Response
protected abstract void
resolveRequest(ClusterState state, Request request)
Resolves the request.protected boolean
protected abstract void
shardOperation(Request request, ActionListener<Response> listener)
protected abstract ShardIterator
shards(ClusterState clusterState, Request request)
Should return an iterator with a single shard!protected TransportRequestOptions
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Field Details
-
threadPool
-
clusterService
-
transportService
-
indexNameExpressionResolver
-
-
Constructor Details
-
TransportInstanceSingleOperationAction
protected TransportInstanceSingleOperationAction(String actionName, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Writeable.Reader<Request> request)
-
-
Method Details
-
doExecute
- Specified by:
doExecute
in classTransportAction<Request extends InstanceShardOperationRequest<Request>,Response extends ActionResponse>
-
executor
-
shardOperation
-
newResponse
- Throws:
IOException
-
checkGlobalBlock
-
checkRequestBlock
-
resolveRequest
Resolves the request. Throws an exception if the request cannot be resolved. -
retryOnFailure
-
transportOptions
-
shards
Should return an iterator with a single shard!
-