Module org.elasticsearch.server
Class TransportRemoveIndexBlockAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<RemoveIndexBlockRequest,RemoveIndexBlockResponse>
org.elasticsearch.action.support.HandledTransportAction<RemoveIndexBlockRequest,RemoveIndexBlockResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<RemoveIndexBlockRequest,RemoveIndexBlockResponse>
org.elasticsearch.action.admin.indices.readonly.TransportRemoveIndexBlockAction
- All Implemented Interfaces:
ActionWithReservedState<RemoveIndexBlockRequest>
public class TransportRemoveIndexBlockAction
extends TransportMasterNodeAction<RemoveIndexBlockRequest,RemoveIndexBlockResponse>
Removes a single index level block from a given set of indices. This action removes the block setting
and updates the cluster state to reflect the change.
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionTransportRemoveIndexBlockAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, ProjectResolver projectResolver, IndexNameExpressionResolver indexNameExpressionResolver, DestructiveOperations destructiveOperations) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(RemoveIndexBlockRequest request, ClusterState state) protected voiddoExecute(Task task, RemoveIndexBlockRequest request, ActionListener<RemoveIndexBlockResponse> listener) protected voidmasterOperation(Task task, RemoveIndexBlockRequest request, ClusterState state, ActionListener<RemoveIndexBlockResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
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
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportRemoveIndexBlockAction
@Inject public TransportRemoveIndexBlockAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, ProjectResolver projectResolver, IndexNameExpressionResolver indexNameExpressionResolver, DestructiveOperations destructiveOperations)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, RemoveIndexBlockRequest request, ActionListener<RemoveIndexBlockResponse> listener) - Overrides:
doExecutein classTransportMasterNodeAction<RemoveIndexBlockRequest,RemoveIndexBlockResponse>
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<RemoveIndexBlockRequest,RemoveIndexBlockResponse>
-
masterOperation
protected void masterOperation(Task task, RemoveIndexBlockRequest request, ClusterState state, ActionListener<RemoveIndexBlockResponse> listener) throws Exception - Specified by:
masterOperationin classTransportMasterNodeAction<RemoveIndexBlockRequest,RemoveIndexBlockResponse> - Throws:
Exception
-