Module org.elasticsearch.server
Class TransportDeleteDanglingIndexAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
org.elasticsearch.action.support.HandledTransportAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
org.elasticsearch.action.support.master.AcknowledgedTransportMasterNodeAction<DeleteDanglingIndexRequest>
org.elasticsearch.action.admin.indices.dangling.delete.TransportDeleteDanglingIndexAction
- All Implemented Interfaces:
ActionWithReservedState<DeleteDanglingIndexRequest>
public class TransportDeleteDanglingIndexAction
extends AcknowledgedTransportMasterNodeAction<DeleteDanglingIndexRequest>
Implements the deletion of a dangling index. When handling a
DeleteDanglingIndexRequest,
this class first checks that such a dangling index exists. It then submits a cluster state update
to add the index to the index graveyard.-
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
ConstructorsConstructorDescriptionTransportDeleteDanglingIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, Settings settings, NodeClient nodeClient) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(DeleteDanglingIndexRequest request, ClusterState state) protected voidmasterOperation(Task task, DeleteDanglingIndexRequest deleteRequest, ClusterState state, ActionListener<AcknowledgedResponse> deleteListener) 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
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportDeleteDanglingIndexAction
@Inject public TransportDeleteDanglingIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, Settings settings, NodeClient nodeClient)
-
-
Method Details
-
masterOperation
protected void masterOperation(Task task, DeleteDanglingIndexRequest deleteRequest, ClusterState state, ActionListener<AcknowledgedResponse> deleteListener) throws Exception - Specified by:
masterOperationin classTransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse> - Throws:
Exception
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
-