Class TransportPutMappingAction
- java.lang.Object
-
- org.elasticsearch.action.support.TransportAction<Request,Response>
-
- org.elasticsearch.action.support.HandledTransportAction<Request,Response>
-
- org.elasticsearch.action.support.master.TransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
- org.elasticsearch.action.admin.indices.mapping.put.TransportPutMappingAction
-
public class TransportPutMappingAction extends TransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
Put mapping action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransportPutMappingAction.RequestValidators
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, indexNameExpressionResolver, threadPool, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
-
Constructor Summary
Constructors Constructor Description TransportPutMappingAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataMappingService metaDataMappingService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, TransportPutMappingAction.RequestValidators requestValidators)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockException
checkBlock(PutMappingRequest request, ClusterState state)
protected java.lang.String
executor()
protected void
masterOperation(PutMappingRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)
protected AcknowledgedResponse
newResponse()
-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperation, read
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
-
-
-
Constructor Detail
-
TransportPutMappingAction
@Inject public TransportPutMappingAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetaDataMappingService metaDataMappingService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, TransportPutMappingAction.RequestValidators requestValidators)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executor
in classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
newResponse
protected AcknowledgedResponse newResponse()
- Specified by:
newResponse
in classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
- Returns:
- a new response instance. Typically this is used for serialization using the
Streamable.readFrom(StreamInput)
method.
-
checkBlock
protected ClusterBlockException checkBlock(PutMappingRequest request, ClusterState state)
- Specified by:
checkBlock
in classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
masterOperation
protected void masterOperation(PutMappingRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)
- Specified by:
masterOperation
in classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
-