public class TransportDfsOnlyAction extends TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
TransportBroadcastAction.AsyncBroadcastAction
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
clusterService, transportService
actionName, indexNameExpressionResolver, parseFieldMatcher, taskManager, threadPool
deprecationLogger, logger, settings
Constructor and Description |
---|
TransportDfsOnlyAction(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
TransportService transportService,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
SearchService searchService,
SearchPhaseController searchPhaseController) |
Modifier and Type | Method and Description |
---|---|
protected long |
buildTookInMillis(DfsOnlyRequest request)
Builds how long it took to execute the dfs request.
|
protected ClusterBlockException |
checkGlobalBlock(ClusterState state,
DfsOnlyRequest request) |
protected ClusterBlockException |
checkRequestBlock(ClusterState state,
DfsOnlyRequest countRequest,
String[] concreteIndices) |
protected void |
doExecute(Task task,
DfsOnlyRequest request,
ActionListener<DfsOnlyResponse> listener) |
protected DfsOnlyResponse |
newResponse(DfsOnlyRequest request,
AtomicReferenceArray shardsResponses,
ClusterState clusterState) |
protected ShardDfsOnlyRequest |
newShardRequest(int numShards,
ShardRouting shard,
DfsOnlyRequest request) |
protected org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse |
newShardResponse() |
protected org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse |
shardOperation(ShardDfsOnlyRequest request) |
protected GroupShardsIterator |
shards(ClusterState clusterState,
DfsOnlyRequest request,
String[] concreteIndices)
Determines the shards this operation will be executed on.
|
doExecute, shardOperation
execute, execute, execute, execute
logDeprecatedSetting, logRemovedSetting, nodeName
public static final String NAME
@Inject public TransportDfsOnlyAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, SearchService searchService, SearchPhaseController searchPhaseController)
protected void doExecute(Task task, DfsOnlyRequest request, ActionListener<DfsOnlyResponse> listener)
doExecute
in class TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
protected ShardDfsOnlyRequest newShardRequest(int numShards, ShardRouting shard, DfsOnlyRequest request)
newShardRequest
in class TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
protected org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse newShardResponse()
newShardResponse
in class TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
protected GroupShardsIterator shards(ClusterState clusterState, DfsOnlyRequest request, String[] concreteIndices)
TransportBroadcastAction
shards
in class TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
protected ClusterBlockException checkGlobalBlock(ClusterState state, DfsOnlyRequest request)
checkGlobalBlock
in class TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
protected ClusterBlockException checkRequestBlock(ClusterState state, DfsOnlyRequest countRequest, String[] concreteIndices)
checkRequestBlock
in class TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
protected DfsOnlyResponse newResponse(DfsOnlyRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState)
newResponse
in class TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
protected org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse shardOperation(ShardDfsOnlyRequest request)
shardOperation
in class TransportBroadcastAction<DfsOnlyRequest,DfsOnlyResponse,ShardDfsOnlyRequest,org.elasticsearch.action.termvectors.dfs.ShardDfsOnlyResponse>
protected final long buildTookInMillis(DfsOnlyRequest request)
Copyright © 2009–2016. All rights reserved.