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, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportValidateQueryAction(ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckGlobalBlock(ClusterState state, ValidateQueryRequest request)protected ClusterBlockExceptioncheckRequestBlock(ClusterState state, ValidateQueryRequest countRequest, String[] concreteIndices)protected voiddoExecute(Task task, ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener)protected ValidateQueryResponsenewResponse(ValidateQueryRequest request, AtomicReferenceArray<?> shardsResponses, ClusterState clusterState)protected ShardValidateQueryRequestnewShardRequest(int numShards, ShardRouting shard, ValidateQueryRequest request)protected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponseprotected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponseshardOperation(ShardValidateQueryRequest request, Task task)protected GroupShardsIteratorshards(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:
doExecutein classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
newShardRequest
protected ShardValidateQueryRequest newShardRequest(int numShards, ShardRouting shard, ValidateQueryRequest request)- Specified by:
newShardRequestin 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:
readShardResponsein 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:TransportBroadcastActionDetermines 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:
shardsin classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
checkGlobalBlock
- Specified by:
checkGlobalBlockin classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
checkRequestBlock
protected ClusterBlockException checkRequestBlock(ClusterState state, ValidateQueryRequest countRequest, String[] concreteIndices)- Specified by:
checkRequestBlockin classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
newResponse
protected ValidateQueryResponse newResponse(ValidateQueryRequest request, AtomicReferenceArray<?> shardsResponses, ClusterState clusterState)- Specified by:
newResponsein 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:
shardOperationin classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>- Throws:
IOException
-