Class TransportDeleteDanglingIndexAction
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<DeleteDanglingIndexRequest>
org.elasticsearch.action.admin.indices.dangling.delete.TransportDeleteDanglingIndexAction
public class TransportDeleteDanglingIndexAction
extends AcknowledgedTransportMasterNodeAction<DeleteDanglingIndexRequest>
Implements the deletion of a dangling index. When handling a
DeleteDanglingIndexAction
,
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
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, taskManager
-
Constructor Summary
ConstructorDescriptionTransportDeleteDanglingIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Settings settings, NodeClient nodeClient)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock(DeleteDanglingIndexRequest request, ClusterState state)
protected void
masterOperation(DeleteDanglingIndexRequest deleteRequest, ClusterState state, ActionListener<AcknowledgedResponse> deleteListener)
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperation
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportDeleteDanglingIndexAction
@Inject public TransportDeleteDanglingIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Settings settings, NodeClient nodeClient)
-
-
Method Details
-
masterOperation
protected void masterOperation(DeleteDanglingIndexRequest deleteRequest, ClusterState state, ActionListener<AcknowledgedResponse> deleteListener) throws Exception- Specified by:
masterOperation
in classTransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
- Throws:
Exception
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
-