Module org.elasticsearch.server
Class TransportDeleteComposableIndexTemplateAction
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<TransportDeleteComposableIndexTemplateAction.Request>
org.elasticsearch.action.admin.indices.template.delete.TransportDeleteComposableIndexTemplateAction
- All Implemented Interfaces:
ActionWithReservedState<TransportDeleteComposableIndexTemplateAction.Request>
public class TransportDeleteComposableIndexTemplateAction
extends AcknowledgedTransportMasterNodeAction<TransportDeleteComposableIndexTemplateAction.Request>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
ConstructorsConstructorDescriptionTransportDeleteComposableIndexTemplateAction
(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
protected void
masterOperation
(Task task, TransportDeleteComposableIndexTemplateAction.Request request, ClusterState state, ActionListener<AcknowledgedResponse> listener) Override this method to return the keys of the cluster state or cluster entities that are modified by the Request object.Override this method if the master node action also has anReservedClusterStateHandler
interaction.Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecute
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, localOnly
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
validateForReservedState
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportDeleteComposableIndexTemplateAction
@Inject public TransportDeleteComposableIndexTemplateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, MetadataIndexTemplateService indexTemplateService, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
checkBlock
protected ClusterBlockException checkBlock(TransportDeleteComposableIndexTemplateAction.Request request, ClusterState state) - Specified by:
checkBlock
in classTransportMasterNodeAction<TransportDeleteComposableIndexTemplateAction.Request,
AcknowledgedResponse>
-
masterOperation
protected void masterOperation(Task task, TransportDeleteComposableIndexTemplateAction.Request request, ClusterState state, ActionListener<AcknowledgedResponse> listener) -
reservedStateHandlerName
Description copied from interface:ActionWithReservedState
Override this method if the master node action also has anReservedClusterStateHandler
interaction.We need to check if certain settings or entities are allowed to be modified by the master node action, depending on if they are set as reserved in 'operator' mode (file based settings, modules, plugins).
- Returns:
- an Optional of the
ReservedClusterStateHandler
name
-
modifiedKeys
Description copied from interface:ActionWithReservedState
Override this method to return the keys of the cluster state or cluster entities that are modified by the Request object.This method is used by the reserved state handler logic (see
ReservedClusterStateHandler
) to verify if the keys don't conflict with an existing key set as reserved.- Parameters:
request
- the TransportMasterNode request- Returns:
- set of String keys intended to be modified/set/deleted by this request
-