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
Constructors Constructor Description TransportListDanglingIndicesAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, DanglingIndicesState danglingIndicesState) -
Method Summary
Modifier and Type Method Description protected NodeListDanglingIndicesRequestnewNodeRequest(ListDanglingIndicesRequest request)protected NodeListDanglingIndicesResponsenewNodeResponse(StreamInput in)protected ListDanglingIndicesResponsenewResponse(ListDanglingIndicesRequest request, java.util.List<NodeListDanglingIndicesResponse> nodeListDanglingIndicesResponse, java.util.List<FailedNodeException> failures)Create a newTransportNodesAction(multi-node response).protected NodeListDanglingIndicesResponsenodeOperation(NodeListDanglingIndicesRequest request)Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
doExecute, getTransportNodeAction, newResponseAsync, nodeOperation, resolveRequestMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, executeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TransportListDanglingIndicesAction
@Inject public TransportListDanglingIndicesAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, DanglingIndicesState danglingIndicesState)
-
-
Method Details
-
newResponse
protected ListDanglingIndicesResponse newResponse(ListDanglingIndicesRequest request, java.util.List<NodeListDanglingIndicesResponse> nodeListDanglingIndicesResponse, java.util.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
protected NodeListDanglingIndicesResponse newNodeResponse(StreamInput in) throws java.io.IOException- Specified by:
newNodeResponsein classTransportNodesAction<ListDanglingIndicesRequest,ListDanglingIndicesResponse,NodeListDanglingIndicesRequest,NodeListDanglingIndicesResponse>- Throws:
java.io.IOException
-
nodeOperation
-