Module org.elasticsearch.server
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
FieldsModifier and TypeFieldDescriptionprotected final ClusterServiceprotected final IndexNameExpressionResolverprotected final ThreadPoolprotected final TransportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransportInstanceSingleOperationAction(String actionName, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Writeable.Reader<Request> request) -
Method Summary
Modifier and TypeMethodDescriptionprotected static ClusterBlockExceptioncheckGlobalBlock(ClusterState state) protected ClusterBlockExceptioncheckRequestBlock(ClusterState state, Request request) protected voiddoExecute(Task task, Request request, ActionListener<Response> listener) protected abstract Executorprotected abstract Responseprotected abstract voidresolveRequest(ClusterState state, Request request) Resolves the request.protected booleanprotected abstract voidshardOperation(Request request, ActionListener<Response> listener) protected abstract ShardIteratorshards(ClusterState clusterState, Request request) Should return an iterator with a single shard!protected static TransportRequestOptionsMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
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:
doExecutein 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!
-