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, logger, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportValidateQueryAction(ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckGlobalBlock(ClusterState state, ValidateQueryRequest request)protected ClusterBlockExceptioncheckRequestBlock(ClusterState state, ValidateQueryRequest countRequest, java.lang.String[] concreteIndices)protected voiddoExecute(Task task, ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener)protected ValidateQueryResponsenewResponse(ValidateQueryRequest request, java.util.concurrent.atomic.AtomicReferenceArray shardsResponses, ClusterState clusterState)protected ShardValidateQueryRequestnewShardRequest(int numShards, ShardRouting shard, ValidateQueryRequest request)protected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponsenewShardResponse()protected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponseshardOperation(ShardValidateQueryRequest request, Task task)protected GroupShardsIteratorshards(ClusterState clusterState, ValidateQueryRequest request, java.lang.String[] concreteIndices)Determines the shards this operation will be executed on.-
Methods inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastAction
asyncShardOperation
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportValidateQueryAction
@Inject public TransportValidateQueryAction(ClusterService clusterService, TransportService transportService, SearchService searchService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Detail
-
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>
-
newShardResponse
protected org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse newShardResponse()
- Specified by:
newShardResponsein classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
shards
protected GroupShardsIterator shards(ClusterState clusterState, ValidateQueryRequest request, java.lang.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
protected ClusterBlockException checkGlobalBlock(ClusterState state, ValidateQueryRequest request)
- Specified by:
checkGlobalBlockin classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
checkRequestBlock
protected ClusterBlockException checkRequestBlock(ClusterState state, ValidateQueryRequest countRequest, java.lang.String[] concreteIndices)
- Specified by:
checkRequestBlockin classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>
-
newResponse
protected ValidateQueryResponse newResponse(ValidateQueryRequest request, java.util.concurrent.atomic.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 java.io.IOException
- Specified by:
shardOperationin classTransportBroadcastAction<ValidateQueryRequest,ValidateQueryResponse,ShardValidateQueryRequest,org.elasticsearch.action.admin.indices.validate.query.ShardValidateQueryResponse>- Throws:
java.io.IOException
-
-