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.
-
-
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, RequestValidators<PutMappingRequest> requestValidators)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(PutMappingRequest request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(PutMappingRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)protected AcknowledgedResponsenewResponse()protected AcknowledgedResponseread(StreamInput in)-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperation
-
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, RequestValidators<PutMappingRequest> requestValidators)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
read
protected AcknowledgedResponse read(StreamInput in) throws java.io.IOException
- Overrides:
readin classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>- Throws:
java.io.IOException
-
newResponse
protected AcknowledgedResponse newResponse()
- Specified by:
newResponsein 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:
checkBlockin classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
masterOperation
protected void masterOperation(PutMappingRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)
- Specified by:
masterOperationin classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
-