Module org.elasticsearch.server
Class TransportFindDanglingIndexAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<NodesRequest,NodesResponse>
org.elasticsearch.action.support.nodes.TransportNodesAction<FindDanglingIndexRequest,FindDanglingIndexResponse,NodeFindDanglingIndexRequest,NodeFindDanglingIndexResponse>
org.elasticsearch.action.admin.indices.dangling.find.TransportFindDanglingIndexAction
public class TransportFindDanglingIndexAction
extends TransportNodesAction<FindDanglingIndexRequest,FindDanglingIndexResponse,NodeFindDanglingIndexRequest,NodeFindDanglingIndexResponse>
Finds a specified dangling index by its UUID, searching across all nodes.
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
clusterService, transportNodeAction
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
ConstructorDescriptionTransportFindDanglingIndexAction
(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, DanglingIndicesState danglingIndicesState) -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeFindDanglingIndexRequest
newNodeRequest
(FindDanglingIndexRequest request) protected NodeFindDanglingIndexResponse
newNodeResponse
(StreamInput in, DiscoveryNode node) protected FindDanglingIndexResponse
newResponse
(FindDanglingIndexRequest request, List<NodeFindDanglingIndexResponse> nodeResponses, List<FailedNodeException> failures) Create a newTransportNodesAction
.protected NodeFindDanglingIndexResponse
nodeOperation
(NodeFindDanglingIndexRequest 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
-
TransportFindDanglingIndexAction
@Inject public TransportFindDanglingIndexAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, DanglingIndicesState danglingIndicesState)
-
-
Method Details
-
newResponse
protected FindDanglingIndexResponse newResponse(FindDanglingIndexRequest request, List<NodeFindDanglingIndexResponse> nodeResponses, List<FailedNodeException> failures) Description copied from class:TransportNodesAction
Create a newTransportNodesAction
. This method is executed onTransportNodesAction.finalExecutor
.- Specified by:
newResponse
in classTransportNodesAction<FindDanglingIndexRequest,
FindDanglingIndexResponse, NodeFindDanglingIndexRequest, NodeFindDanglingIndexResponse> - 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.nodeResponses
- All successful node-level responses.failures
- All node-level failures.- Returns:
- Never
null
.
-
newNodeRequest
-
newNodeResponse
protected NodeFindDanglingIndexResponse newNodeResponse(StreamInput in, DiscoveryNode node) throws IOException - Specified by:
newNodeResponse
in classTransportNodesAction<FindDanglingIndexRequest,
FindDanglingIndexResponse, NodeFindDanglingIndexRequest, NodeFindDanglingIndexResponse> - Throws:
IOException
-
nodeOperation
protected NodeFindDanglingIndexResponse nodeOperation(NodeFindDanglingIndexRequest request, Task task)
-