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<DeleteDanglingIndexRequest,AcknowledgedResponse>
org.elasticsearch.action.admin.indices.dangling.delete.TransportDeleteDanglingIndexAction
public class TransportDeleteDanglingIndexAction extends TransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
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, indexNameExpressionResolver, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
Constructors Constructor Description TransportDeleteDanglingIndexAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, Settings settings, NodeClient nodeClient) -
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(DeleteDanglingIndexRequest request, ClusterState state)protected java.lang.Stringexecutor()protected voidmasterOperation(DeleteDanglingIndexRequest deleteRequest, ClusterState state, ActionListener<AcknowledgedResponse> deleteListener)protected AcknowledgedResponseread(StreamInput in)Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperationMethods 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
-
executor
protected java.lang.String executor()- Specified by:
executorin classTransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
-
read
- Specified by:
readin classTransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>- Throws:
java.io.IOException
-
masterOperation
protected void masterOperation(DeleteDanglingIndexRequest deleteRequest, ClusterState state, ActionListener<AcknowledgedResponse> deleteListener) throws java.lang.Exception- Specified by:
masterOperationin classTransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>- Throws:
java.lang.Exception
-
checkBlock
- Specified by:
checkBlockin classTransportMasterNodeAction<DeleteDanglingIndexRequest,AcknowledgedResponse>
-