org.elasticsearch.action.admin.indices.analyze
Class TransportAnalyzeAction

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.single.custom.TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>
              extended by org.elasticsearch.action.admin.indices.analyze.TransportAnalyzeAction

public class TransportAnalyzeAction
extends TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.elasticsearch.action.support.single.custom.TransportSingleCustomOperationAction
TransportSingleCustomOperationAction.ShardSingleOperationRequest
 
Field Summary
 
Fields inherited from class org.elasticsearch.action.support.single.custom.TransportSingleCustomOperationAction
clusterService, transportService
 
Fields inherited from class org.elasticsearch.action.support.TransportAction
threadPool
 
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
componentSettings, logger, settings
 
Constructor Summary
TransportAnalyzeAction(Settings settings, ThreadPool threadPool, ClusterService clusterService, TransportService transportService, IndicesService indicesService, IndicesAnalysisService indicesAnalysisService)
           
 
Method Summary
protected  ClusterBlockException checkGlobalBlock(ClusterState state, AnalyzeRequest request)
           
protected  ClusterBlockException checkRequestBlock(ClusterState state, AnalyzeRequest request)
           
protected  String executor()
           
protected  AnalyzeRequest newRequest()
           
protected  AnalyzeResponse newResponse()
           
protected  AnalyzeResponse shardOperation(AnalyzeRequest request, int shardId)
           
protected  ShardsIterator shards(ClusterState state, AnalyzeRequest request)
          Can return null to execute on this local node.
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.single.custom.TransportSingleCustomOperationAction
doExecute
 
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

TransportAnalyzeAction

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

executor

protected String executor()
Specified by:
executor in class TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>

newRequest

protected AnalyzeRequest newRequest()
Specified by:
newRequest in class TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>

newResponse

protected AnalyzeResponse newResponse()
Specified by:
newResponse in class TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>

transportAction

protected String transportAction()
Specified by:
transportAction in class TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>

checkGlobalBlock

protected ClusterBlockException checkGlobalBlock(ClusterState state,
                                                 AnalyzeRequest request)
Specified by:
checkGlobalBlock in class TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>

checkRequestBlock

protected ClusterBlockException checkRequestBlock(ClusterState state,
                                                  AnalyzeRequest request)
Specified by:
checkRequestBlock in class TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>

shards

protected ShardsIterator shards(ClusterState state,
                                AnalyzeRequest request)
Description copied from class: TransportSingleCustomOperationAction
Can return null to execute on this local node.

Specified by:
shards in class TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>

shardOperation

protected AnalyzeResponse shardOperation(AnalyzeRequest request,
                                         int shardId)
                                  throws ElasticSearchException
Specified by:
shardOperation in class TransportSingleCustomOperationAction<AnalyzeRequest,AnalyzeResponse>
Throws:
ElasticSearchException


Copyright © 2009-2012. All Rights Reserved.