Class TransportAutoPutMappingAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<Request,AcknowledgedResponse>
org.elasticsearch.action.support.master.AcknowledgedTransportMasterNodeAction<PutMappingRequest>
org.elasticsearch.action.admin.indices.mapping.put.TransportAutoPutMappingAction
public class TransportAutoPutMappingAction
extends AcknowledgedTransportMasterNodeAction<PutMappingRequest>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, indexNameExpressionResolver, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportAutoPutMappingAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataMappingService metadataMappingService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, SystemIndices systemIndices) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(PutMappingRequest request, ClusterState state)protected voiddoExecute(Task task, PutMappingRequest request, ActionListener<AcknowledgedResponse> listener)protected voidmasterOperation(PutMappingRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
getMasterActionName, localExecute, masterOperationMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportAutoPutMappingAction
@Inject public TransportAutoPutMappingAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataMappingService metadataMappingService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, SystemIndices systemIndices)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, PutMappingRequest request, ActionListener<AcknowledgedResponse> listener)- Overrides:
doExecutein classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-
masterOperation
protected void masterOperation(PutMappingRequest request, ClusterState state, ActionListener<AcknowledgedResponse> listener)- Specified by:
masterOperationin classTransportMasterNodeAction<PutMappingRequest,AcknowledgedResponse>
-