Module org.elasticsearch.server
Class TransportPutSampleConfigurationAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<PutSampleConfigurationAction.Request,AcknowledgedResponse>
org.elasticsearch.action.support.HandledTransportAction<PutSampleConfigurationAction.Request,AcknowledgedResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<PutSampleConfigurationAction.Request,AcknowledgedResponse>
org.elasticsearch.action.support.master.AcknowledgedTransportMasterNodeAction<PutSampleConfigurationAction.Request>
org.elasticsearch.action.admin.indices.sampling.TransportPutSampleConfigurationAction
- All Implemented Interfaces:
ActionWithReservedState<PutSampleConfigurationAction.Request>
public class TransportPutSampleConfigurationAction
extends AcknowledgedTransportMasterNodeAction<PutSampleConfigurationAction.Request>
Transport action for updating sampling configurations in cluster metadata.
This action handles the cluster state update required to store sampling configurations for the specified indices. It validates the request, resolves index names, and updates the cluster metadata with the new sampling configuration.
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportPutSampleConfigurationAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, ProjectResolver projectResolver, IndexNameExpressionResolver indexNameExpressionResolver, SamplingService samplingService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(PutSampleConfigurationAction.Request request, ClusterState state) protected voidmasterOperation(Task task, PutSampleConfigurationAction.Request request, ClusterState state, ActionListener<AcknowledgedResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute, validateForReservedStateMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Constructor Details
-
TransportPutSampleConfigurationAction
@Inject public TransportPutSampleConfigurationAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, ProjectResolver projectResolver, IndexNameExpressionResolver indexNameExpressionResolver, SamplingService samplingService)
-
-
Method Details
-
masterOperation
protected void masterOperation(Task task, PutSampleConfigurationAction.Request request, ClusterState state, ActionListener<AcknowledgedResponse> listener) throws Exception - Specified by:
masterOperationin classTransportMasterNodeAction<PutSampleConfigurationAction.Request,AcknowledgedResponse> - Throws:
Exception
-
checkBlock
protected ClusterBlockException checkBlock(PutSampleConfigurationAction.Request request, ClusterState state) - Specified by:
checkBlockin classTransportMasterNodeAction<PutSampleConfigurationAction.Request,AcknowledgedResponse>
-