org.elasticsearch.action.terms
Class TransportTermsAction

java.lang.Object
  extended by org.elasticsearch.util.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>
              extended by org.elasticsearch.action.terms.TransportTermsAction
All Implemented Interfaces:
Action<TermsRequest,TermsResponse>

public class TransportTermsAction
extends TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
clusterService, indicesService, threadPool, transportService
 
Fields inherited from class org.elasticsearch.util.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportTermsAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService)
           
 
Method Summary
protected  TermsRequest newRequest()
           
protected  TermsResponse newResponse(TermsRequest request, java.util.concurrent.atomic.AtomicReferenceArray shardsResponses, ClusterState clusterState)
           
protected  org.elasticsearch.action.terms.ShardTermsRequest newShardRequest()
           
protected  org.elasticsearch.action.terms.ShardTermsRequest newShardRequest(ShardRouting shard, TermsRequest request)
           
protected  org.elasticsearch.action.terms.ShardTermsResponse newShardResponse()
           
protected  org.elasticsearch.action.terms.ShardTermsResponse shardOperation(org.elasticsearch.action.terms.ShardTermsRequest request)
           
protected  GroupShardsIterator shards(TermsRequest request, ClusterState clusterState)
           
protected  java.lang.String transportAction()
           
protected  java.lang.String transportShardAction()
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
accumulateExceptions, doExecute, ignoreNonActiveExceptions
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
execute, execute
 
Methods inherited from class org.elasticsearch.util.component.AbstractComponent
nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportTermsAction

@Inject
public TransportTermsAction(Settings settings,
                                   ThreadPool threadPool,
                                   ClusterService clusterService,
                                   TransportService transportService,
                                   IndicesService indicesService)
Method Detail

newResponse

protected TermsResponse newResponse(TermsRequest request,
                                    java.util.concurrent.atomic.AtomicReferenceArray shardsResponses,
                                    ClusterState clusterState)
Specified by:
newResponse in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>

shardOperation

protected org.elasticsearch.action.terms.ShardTermsResponse shardOperation(org.elasticsearch.action.terms.ShardTermsRequest request)
                                                                    throws ElasticSearchException
Specified by:
shardOperation in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>
Throws:
ElasticSearchException

transportAction

protected java.lang.String transportAction()
Specified by:
transportAction in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>

transportShardAction

protected java.lang.String transportShardAction()
Specified by:
transportShardAction in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>

newRequest

protected TermsRequest newRequest()
Specified by:
newRequest in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>

newShardRequest

protected org.elasticsearch.action.terms.ShardTermsRequest newShardRequest()
Specified by:
newShardRequest in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>

newShardRequest

protected org.elasticsearch.action.terms.ShardTermsRequest newShardRequest(ShardRouting shard,
                                                                           TermsRequest request)
Specified by:
newShardRequest in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>

newShardResponse

protected org.elasticsearch.action.terms.ShardTermsResponse newShardResponse()
Specified by:
newShardResponse in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>

shards

protected GroupShardsIterator shards(TermsRequest request,
                                     ClusterState clusterState)
Specified by:
shards in class TransportBroadcastOperationAction<TermsRequest,TermsResponse,org.elasticsearch.action.terms.ShardTermsRequest,org.elasticsearch.action.terms.ShardTermsResponse>