Class TransportValidateQueryAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.broadcast.TransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
org.elasticsearch.action.admin.indices.validate.query.TransportValidateQueryAction
public class TransportValidateQueryAction
extends TransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastAction
TransportBroadcastAction.AsyncBroadcastAction
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastAction
clusterService, indexNameExpressionResolver, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportValidateQueryAction(ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkGlobalBlock(ClusterState state, ValidateQueryRequest request)
protected ClusterBlockException
checkRequestBlock(ClusterState state, ValidateQueryRequest countRequest, String[] concreteIndices)
protected void
doExecute(Task task, ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener)
protected ValidateQueryResponse
newResponse(ValidateQueryRequest request, AtomicReferenceArray<?> shardsResponses, ClusterState clusterState)
protected ShardValidateQueryRequest
newShardRequest(int numShards, ShardRouting shard, ValidateQueryRequest request)
protected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse
protected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse
shardOperation(ShardValidateQueryRequest request, Task task)
protected GroupShardsIterator
shards(ClusterState clusterState, ValidateQueryRequest request, String[] concreteIndices)
Determines the shards this operation will be executed on.Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportValidateQueryAction
@Inject public TransportValidateQueryAction(ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener)- Overrides:
doExecute
in classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
newShardRequest
protected ShardValidateQueryRequest newShardRequest(int numShards, ShardRouting shard, ValidateQueryRequest request)- Specified by:
newShardRequest
in classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
readShardResponse
protected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse readShardResponse(StreamInput in) throws IOException- Specified by:
readShardResponse
in classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
- Throws:
IOException
-
shards
protected GroupShardsIterator shards(ClusterState clusterState, ValidateQueryRequest request, String[] concreteIndices)Description copied from class:TransportBroadcastAction
Determines the shards this operation will be executed on. The operation is executed once per shard iterator, typically on the first shard in it. If the operation fails, it will be retried on the next shard in the iterator.- Specified by:
shards
in classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
checkGlobalBlock
- Specified by:
checkGlobalBlock
in classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
checkRequestBlock
protected ClusterBlockException checkRequestBlock(ClusterState state, ValidateQueryRequest countRequest, String[] concreteIndices)- Specified by:
checkRequestBlock
in classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
newResponse
protected ValidateQueryResponse newResponse(ValidateQueryRequest request, AtomicReferenceArray<?> shardsResponses, ClusterState clusterState)- Specified by:
newResponse
in classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
shardOperation
protected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse shardOperation(ShardValidateQueryRequest request, Task task) throws IOException- Specified by:
shardOperation
in classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
- Throws:
IOException
-