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, transportNodeActionFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportListDanglingIndicesAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, DanglingIndicesState danglingIndicesState) -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeListDanglingIndicesRequestnewNodeRequest(ListDanglingIndicesRequest request)protected NodeListDanglingIndicesResponseprotected ListDanglingIndicesResponsenewResponse(ListDanglingIndicesRequest request, List<NodeListDanglingIndicesResponse> nodeListDanglingIndicesResponse, List<FailedNodeException> failures)Create a newTransportNodesAction(multi-node response).protected NodeListDanglingIndicesResponseMethods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
doExecute, getTransportNodeAction, newResponseAsync, nodeOperation, resolveRequestMethods 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:TransportNodesActionCreate a newTransportNodesAction(multi-node response).- Specified by:
newResponsein 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
-
nodeOperation
-