org.elasticsearch.cluster.action.index
Class MappingUpdatedAction

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.master.TransportMasterNodeOperationAction<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>
              extended by org.elasticsearch.cluster.action.index.MappingUpdatedAction

public class MappingUpdatedAction
extends TransportMasterNodeOperationAction<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>

Called by shards in the cluster when their mapping was dynamically updated and it needs to be updated in the cluster state meta data (and broadcast to all members).


Nested Class Summary
static class MappingUpdatedAction.MappingUpdatedRequest
           
static class MappingUpdatedAction.MappingUpdatedResponse
           
 
Field Summary
 
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
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
MappingUpdatedAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataMappingService metaDataMappingService)
           
 
Method Summary
protected  String executor()
           
protected  MappingUpdatedAction.MappingUpdatedResponse masterOperation(MappingUpdatedAction.MappingUpdatedRequest request, ClusterState state)
           
protected  MappingUpdatedAction.MappingUpdatedRequest newRequest()
           
protected  MappingUpdatedAction.MappingUpdatedResponse newResponse()
           
protected  String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
checkBlock, doExecute, localExecute, processBeforeDelegationToMaster
 
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

MappingUpdatedAction

@Inject
public MappingUpdatedAction(Settings settings,
                                   TransportService transportService,
                                   ClusterService clusterService,
                                   ThreadPool threadPool,
                                   MetaDataMappingService metaDataMappingService)
Method Detail

transportAction

protected String transportAction()
Specified by:
transportAction in class TransportMasterNodeOperationAction<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>

executor

protected String executor()
Specified by:
executor in class TransportMasterNodeOperationAction<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>

newRequest

protected MappingUpdatedAction.MappingUpdatedRequest newRequest()
Specified by:
newRequest in class TransportMasterNodeOperationAction<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>

newResponse

protected MappingUpdatedAction.MappingUpdatedResponse newResponse()
Specified by:
newResponse in class TransportMasterNodeOperationAction<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>

masterOperation

protected MappingUpdatedAction.MappingUpdatedResponse masterOperation(MappingUpdatedAction.MappingUpdatedRequest request,
                                                                      ClusterState state)
                                                               throws ElasticSearchException
Specified by:
masterOperation in class TransportMasterNodeOperationAction<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>
Throws:
ElasticSearchException


Copyright © 2009-2012. All Rights Reserved.