Module org.elasticsearch.server
Class TransportFindDanglingIndexAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<FindDanglingIndexRequest,FindDanglingIndexResponse>
org.elasticsearch.action.support.nodes.TransportNodesAction<FindDanglingIndexRequest,FindDanglingIndexResponse,NodeFindDanglingIndexRequest,NodeFindDanglingIndexResponse,Void>
org.elasticsearch.action.admin.indices.dangling.find.TransportFindDanglingIndexAction
public class TransportFindDanglingIndexAction
extends TransportNodesAction<FindDanglingIndexRequest,FindDanglingIndexResponse,NodeFindDanglingIndexRequest,NodeFindDanglingIndexResponse,Void>
Finds a specified dangling index by its UUID, searching across all nodes.
-
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
ConstructorsConstructorDescriptionTransportFindDanglingIndexAction(ThreadPool threadPool, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, DanglingIndicesState danglingIndicesState) -
Method Summary
Modifier and TypeMethodDescriptionprotected NodeFindDanglingIndexRequestnewNodeRequest(FindDanglingIndexRequest request) protected NodeFindDanglingIndexResponsenewNodeResponse(StreamInput in, DiscoveryNode node) protected FindDanglingIndexResponsenewResponse(FindDanglingIndexRequest request, List<NodeFindDanglingIndexResponse> nodeResponses, List<FailedNodeException> failures) Create a newTransportNodesAction.protected NodeFindDanglingIndexResponsenodeOperation(NodeFindDanglingIndexRequest 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
-
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:TransportNodesActionCreate a newTransportNodesAction. This method is executed onTransportNodesAction.finalExecutor.- Specified by:
newResponsein classTransportNodesAction<FindDanglingIndexRequest,FindDanglingIndexResponse, NodeFindDanglingIndexRequest, NodeFindDanglingIndexResponse, 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.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:
newNodeResponsein classTransportNodesAction<FindDanglingIndexRequest,FindDanglingIndexResponse, NodeFindDanglingIndexRequest, NodeFindDanglingIndexResponse, Void> - Throws:
IOException
-
nodeOperation
protected NodeFindDanglingIndexResponse nodeOperation(NodeFindDanglingIndexRequest 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).
-