org.elasticsearch.cluster.action.index
Class MappingUpdatedAction

java.lang.Object
  extended by org.elasticsearch.common.component.AbstractComponent
      extended by org.elasticsearch.action.support.BaseAction<Request,Response>
          extended by org.elasticsearch.action.support.master.TransportMasterNodeOperationAction<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>
              extended by org.elasticsearch.cluster.action.index.MappingUpdatedAction
All Implemented Interfaces:
Action<MappingUpdatedAction.MappingUpdatedRequest,MappingUpdatedAction.MappingUpdatedResponse>

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, threadPool, transportService
 
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  MappingUpdatedAction.MappingUpdatedResponse masterOperation(MappingUpdatedAction.MappingUpdatedRequest request, ClusterState state)
           
protected  MappingUpdatedAction.MappingUpdatedRequest newRequest()
           
protected  MappingUpdatedAction.MappingUpdatedResponse newResponse()
           
protected  java.lang.String transportAction()
           
 
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeOperationAction
checkBlock, doExecute, localExecute, processBeforeDelegationToMaster
 
Methods inherited from class org.elasticsearch.action.support.BaseAction
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 java.lang.String transportAction()
Specified by:
transportAction 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