Module org.elasticsearch.server
Class TransportListDanglingIndicesAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<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
FieldsFields inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
clusterService, transportNodeAction
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
ConstructorsConstructorDescriptionTransportListDanglingIndicesAction
(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
.protected NodeListDanglingIndicesResponse
nodeOperation
(NodeListDanglingIndicesRequest request, Task task) Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
doExecute, newResponseAsync, resolveRequest
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, localOnly
-
Field Details
-
TYPE
-
-
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
. This method is executed onTransportNodesAction.finalExecutor
.- Specified by:
newResponse
in classTransportNodesAction<ListDanglingIndicesRequest,
ListDanglingIndicesResponse, NodeListDanglingIndicesRequest, NodeListDanglingIndicesResponse> - Parameters:
request
- The request whose response we are constructing.TransportNodesAction
may have already released all its references to this object before calling this method, so it's up to individual implementations to retain their own reference to the request if still needed here.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
protected NodeListDanglingIndicesResponse nodeOperation(NodeListDanglingIndicesRequest request, Task task)
-