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
Fields Modifier and Type Field Description protected ClusterServiceclusterServiceprotected IndexNameExpressionResolverindexNameExpressionResolverprotected ThreadPoolthreadPoolprotected TransportServicetransportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
Constructors Modifier Constructor Description protectedTransportInstanceSingleOperationAction(java.lang.String actionName, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Writeable.Reader<Request> request) -
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckGlobalBlock(ClusterState state)protected ClusterBlockExceptioncheckRequestBlock(ClusterState state, Request request)protected voiddoExecute(Task task, Request request, ActionListener<Response> listener)protected abstract java.lang.Stringexecutor()protected abstract ResponsenewResponse(StreamInput in)protected abstract voidresolveRequest(ClusterState state, Request request)Resolves the request.protected booleanretryOnFailure(java.lang.Exception e)protected abstract voidshardOperation(Request request, ActionListener<Response> listener)protected abstract ShardIteratorshards(ClusterState clusterState, Request request)Should return an iterator with a single shard!protected TransportRequestOptionstransportOptions()Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Field Details
-
Constructor Details
-
TransportInstanceSingleOperationAction
protected TransportInstanceSingleOperationAction(java.lang.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
protected abstract java.lang.String executor() -
shardOperation
-
newResponse
- Throws:
java.io.IOException
-
checkGlobalBlock
-
checkRequestBlock
-
resolveRequest
Resolves the request. Throws an exception if the request cannot be resolved. -
retryOnFailure
protected boolean retryOnFailure(java.lang.Exception e) -
transportOptions
-
shards
Should return an iterator with a single shard!
-