Class TransportListDanglingIndicesAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<NodesRequest,NodesResponse>
org.elasticsearch.action.support.nodes.TransportNodesAction<ListDanglingIndicesRequest,ListDanglingIndicesResponse,NodeListDanglingIndicesRequest,NodeListDanglingIndicesResponse>
org.elasticsearch.action.admin.indices.dangling.list.TransportListDanglingIndicesAction
public class TransportListDanglingIndicesAction
extends TransportNodesAction<ListDanglingIndicesRequest,ListDanglingIndicesResponse,NodeListDanglingIndicesRequest,NodeListDanglingIndicesResponse>
Implements the listing of all dangling indices. All nodes in the cluster are queried, and
their answers aggregated. Finding dangling indices is performed in
DanglingIndicesState
.-
Field Summary
Fields inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
clusterService, nodeResponseClass, threadPool, transportNodeAction
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager
-
Constructor Summary
ConstructorDescriptionTransportListDanglingIndicesAction
(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, DanglingIndicesState danglingIndicesState) -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeListDanglingIndicesRequest
newNodeRequest
(ListDanglingIndicesRequest request) protected NodeListDanglingIndicesResponse
newNodeResponse
(StreamInput in, DiscoveryNode node) protected ListDanglingIndicesResponse
newResponse
(ListDanglingIndicesRequest request, List<NodeListDanglingIndicesResponse> nodeListDanglingIndicesResponse, List<FailedNodeException> failures) Create a newTransportNodesAction
(multi-node response).protected NodeListDanglingIndicesResponse
Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
doExecute, getTransportNodeAction, newResponseAsync, nodeOperation, resolveRequest
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportListDanglingIndicesAction
@Inject public TransportListDanglingIndicesAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, DanglingIndicesState danglingIndicesState)
-
-
Method Details
-
newResponse
protected ListDanglingIndicesResponse newResponse(ListDanglingIndicesRequest request, List<NodeListDanglingIndicesResponse> nodeListDanglingIndicesResponse, List<FailedNodeException> failures) Description copied from class:TransportNodesAction
Create a newTransportNodesAction
(multi-node response).- Specified by:
newResponse
in classTransportNodesAction<ListDanglingIndicesRequest,
ListDanglingIndicesResponse, NodeListDanglingIndicesRequest, NodeListDanglingIndicesResponse> - Parameters:
request
- The associated request.nodeListDanglingIndicesResponse
- All successful node-level responses.failures
- All node-level failures.- Returns:
- Never
null
.
-
newNodeRequest
-
newNodeResponse
protected NodeListDanglingIndicesResponse newNodeResponse(StreamInput in, DiscoveryNode node) throws IOException -
nodeOperation
-