de.spinscale.elasticsearch.action.suggest.statistics
Class TransportSuggestStatisticsAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.TransportAction<Request,Response>
          extended by org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>
              extended by de.spinscale.elasticsearch.action.suggest.statistics.TransportSuggestStatisticsAction

public class TransportSuggestStatisticsAction
extends org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
clusterService, threadPool, transportService
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportSuggestStatisticsAction(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.cluster.ClusterService clusterService, org.elasticsearch.transport.TransportService transportService, org.elasticsearch.indices.IndicesService indicesService)
           
 
Method Summary
protected  org.elasticsearch.cluster.block.ClusterBlockException checkGlobalBlock(org.elasticsearch.cluster.ClusterState state, SuggestStatisticsRequest request)
           
protected  org.elasticsearch.cluster.block.ClusterBlockException checkRequestBlock(org.elasticsearch.cluster.ClusterState state, SuggestStatisticsRequest request, String[] concreteIndices)
           
protected  String executor()
           
protected  SuggestStatisticsRequest newRequest()
           
protected  SuggestStatisticsResponse newResponse(SuggestStatisticsRequest request, AtomicReferenceArray shardsResponses, org.elasticsearch.cluster.ClusterState clusterState)
           
protected  ShardSuggestStatisticsRequest newShardRequest()
           
protected  ShardSuggestStatisticsRequest newShardRequest(org.elasticsearch.cluster.routing.ShardRouting shard, SuggestStatisticsRequest request)
           
protected  ShardSuggestStatisticsResponse newShardResponse()
           
protected  ShardSuggestStatisticsResponse shardOperation(ShardSuggestStatisticsRequest request)
           
protected  org.elasticsearch.cluster.routing.GroupShardsIterator shards(org.elasticsearch.cluster.ClusterState clusterState, SuggestStatisticsRequest request, String[] concreteIndices)
           
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
accumulateExceptions, doExecute, ignoreException, ignoreIllegalShardState, ignoreNonActiveExceptions
 
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute
 
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportSuggestStatisticsAction

@Inject
public TransportSuggestStatisticsAction(org.elasticsearch.common.settings.Settings settings,
                                               org.elasticsearch.threadpool.ThreadPool threadPool,
                                               org.elasticsearch.cluster.ClusterService clusterService,
                                               org.elasticsearch.transport.TransportService transportService,
                                               org.elasticsearch.indices.IndicesService indicesService)
Method Detail

transportAction

protected String transportAction()
Specified by:
transportAction in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

executor

protected String executor()
Specified by:
executor in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

newRequest

protected SuggestStatisticsRequest newRequest()
Specified by:
newRequest in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

newResponse

protected SuggestStatisticsResponse newResponse(SuggestStatisticsRequest request,
                                                AtomicReferenceArray shardsResponses,
                                                org.elasticsearch.cluster.ClusterState clusterState)
Specified by:
newResponse in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

newShardRequest

protected ShardSuggestStatisticsRequest newShardRequest()
Specified by:
newShardRequest in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

newShardRequest

protected ShardSuggestStatisticsRequest newShardRequest(org.elasticsearch.cluster.routing.ShardRouting shard,
                                                        SuggestStatisticsRequest request)
Specified by:
newShardRequest in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

newShardResponse

protected ShardSuggestStatisticsResponse newShardResponse()
Specified by:
newShardResponse in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

shardOperation

protected ShardSuggestStatisticsResponse shardOperation(ShardSuggestStatisticsRequest request)
                                                 throws org.elasticsearch.ElasticSearchException
Specified by:
shardOperation in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>
Throws:
org.elasticsearch.ElasticSearchException

shards

protected org.elasticsearch.cluster.routing.GroupShardsIterator shards(org.elasticsearch.cluster.ClusterState clusterState,
                                                                       SuggestStatisticsRequest request,
                                                                       String[] concreteIndices)
Specified by:
shards in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

checkGlobalBlock

protected org.elasticsearch.cluster.block.ClusterBlockException checkGlobalBlock(org.elasticsearch.cluster.ClusterState state,
                                                                                 SuggestStatisticsRequest request)
Specified by:
checkGlobalBlock in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>

checkRequestBlock

protected org.elasticsearch.cluster.block.ClusterBlockException checkRequestBlock(org.elasticsearch.cluster.ClusterState state,
                                                                                  SuggestStatisticsRequest request,
                                                                                  String[] concreteIndices)
Specified by:
checkRequestBlock in class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<SuggestStatisticsRequest,SuggestStatisticsResponse,ShardSuggestStatisticsRequest,ShardSuggestStatisticsResponse>


Copyright © 2011-2013. All Rights Reserved.