Package org.elasticsearch.action.update
Class TransportUpdateAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.single.instance.TransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
org.elasticsearch.action.update.TransportUpdateAction
public class TransportUpdateAction
extends TransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.single.instance.TransportInstanceSingleOperationAction
indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportUpdateAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, UpdateHelper updateHelper, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndicesService indicesService, AutoCreateIndex autoCreateIndex, NodeClient client)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute(Task task, UpdateRequest request, ActionListener<UpdateResponse> listener)
protected String
protected UpdateResponse
static void
resolveAndValidateRouting(Metadata metadata, String concreteIndex, UpdateRequest request)
protected void
resolveRequest(ClusterState state, UpdateRequest request)
Resolves the request.protected boolean
protected void
shardOperation(UpdateRequest request, ActionListener<UpdateResponse> listener)
protected void
shardOperation(UpdateRequest request, ActionListener<UpdateResponse> listener, int retryCount)
protected ShardIterator
shards(ClusterState clusterState, UpdateRequest request)
Should return an iterator with a single shard!Methods inherited from class org.elasticsearch.action.support.single.instance.TransportInstanceSingleOperationAction
checkGlobalBlock, checkRequestBlock, transportOptions
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportUpdateAction
@Inject public TransportUpdateAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, UpdateHelper updateHelper, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, IndicesService indicesService, AutoCreateIndex autoCreateIndex, NodeClient client)
-
-
Method Details
-
executor
- Specified by:
executor
in classTransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
-
newResponse
- Specified by:
newResponse
in classTransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
- Throws:
IOException
-
retryOnFailure
- Overrides:
retryOnFailure
in classTransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
-
resolveRequest
Description copied from class:TransportInstanceSingleOperationAction
Resolves the request. Throws an exception if the request cannot be resolved.- Specified by:
resolveRequest
in classTransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
-
resolveAndValidateRouting
public static void resolveAndValidateRouting(Metadata metadata, String concreteIndex, UpdateRequest request) -
doExecute
- Overrides:
doExecute
in classTransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
-
shards
Description copied from class:TransportInstanceSingleOperationAction
Should return an iterator with a single shard!- Specified by:
shards
in classTransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
-
shardOperation
- Specified by:
shardOperation
in classTransportInstanceSingleOperationAction<UpdateRequest,UpdateResponse>
-
shardOperation
protected void shardOperation(UpdateRequest request, ActionListener<UpdateResponse> listener, int retryCount)
-