Module org.elasticsearch.server
Class TransportListDanglingIndicesAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<ListDanglingIndicesRequest,ListDanglingIndicesResponse>
org.elasticsearch.action.support.nodes.TransportNodesAction<ListDanglingIndicesRequest,ListDanglingIndicesResponse,NodeListDanglingIndicesRequest,NodeListDanglingIndicesResponse,Void>
org.elasticsearch.action.admin.indices.dangling.list.TransportListDanglingIndicesAction
public class TransportListDanglingIndicesAction
extends TransportNodesAction<ListDanglingIndicesRequest,ListDanglingIndicesResponse,NodeListDanglingIndicesRequest,NodeListDanglingIndicesResponse,Void>
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, transportServiceFields 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 NodeListDanglingIndicesRequestnewNodeRequest(ListDanglingIndicesRequest request) protected NodeListDanglingIndicesResponsenewNodeResponse(StreamInput in, DiscoveryNode node) protected ListDanglingIndicesResponsenewResponse(ListDanglingIndicesRequest request, List<NodeListDanglingIndicesResponse> nodeListDanglingIndicesResponse, List<FailedNodeException> failures) Create a newTransportNodesAction.protected NodeListDanglingIndicesResponsenodeOperation(NodeListDanglingIndicesRequest request, Task task) Implements the request recipient logic.Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
createActionContext, doExecute, newResponseAsync, nodeOperationAsync, resolveRequest, sendLegacyNodesRequestHeader, skipLegacyNodesRequestHeaderMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, 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:TransportNodesActionCreate a newTransportNodesAction. This method is executed onTransportNodesAction.finalExecutor.- Specified by:
newResponsein classTransportNodesAction<ListDanglingIndicesRequest,ListDanglingIndicesResponse, NodeListDanglingIndicesRequest, NodeListDanglingIndicesResponse, Void> - Parameters:
request- The request whose response we are constructing.TransportNodesActionmay 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) Description copied from class:TransportNodesActionImplements the request recipient logic. If access to the request listener is needed, overrideTransportNodesAction.nodeOperationAsync(TransportRequest, Task, ActionListener).
-