Module org.elasticsearch.server
Class TransportAwaitClusterStateVersionAppliedAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<AwaitClusterStateVersionAppliedRequest,AwaitClusterStateVersionAppliedResponse>
org.elasticsearch.action.support.nodes.TransportNodesAction<AwaitClusterStateVersionAppliedRequest,AwaitClusterStateVersionAppliedResponse,TransportAwaitClusterStateVersionAppliedAction.NodeRequest,TransportAwaitClusterStateVersionAppliedAction.NodeResponse,Void>
org.elasticsearch.action.admin.cluster.state.TransportAwaitClusterStateVersionAppliedAction
public class TransportAwaitClusterStateVersionAppliedAction
extends TransportNodesAction<AwaitClusterStateVersionAppliedRequest,AwaitClusterStateVersionAppliedResponse,TransportAwaitClusterStateVersionAppliedAction.NodeRequest,TransportAwaitClusterStateVersionAppliedAction.NodeResponse,Void>
An action that waits for a given cluster state version to be applied on provided set of nodes in the cluster.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ActionType<AwaitClusterStateVersionAppliedResponse> Fields inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
clusterService, transportNodeAction, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportAwaitClusterStateVersionAppliedAction(ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, ThreadPool threadPool) -
Method Summary
Modifier and TypeMethodDescriptionnewNodeResponse(StreamInput in, DiscoveryNode node) protected AwaitClusterStateVersionAppliedResponsenewResponse(AwaitClusterStateVersionAppliedRequest request, List<TransportAwaitClusterStateVersionAppliedAction.NodeResponse> nodeResponses, List<FailedNodeException> failures) Create a newTransportNodesAction.Implements the request recipient logic.protected voidnodeOperationAsync(TransportAwaitClusterStateVersionAppliedAction.NodeRequest request, Task task, ActionListener<TransportAwaitClusterStateVersionAppliedAction.NodeResponse> listener) This method can be overridden if a subclass needs to access to a listener in order to asynchronously respond to the node request.Methods inherited from class org.elasticsearch.action.support.nodes.TransportNodesAction
createActionContext, doExecute, newResponseAsync, resolveRequestMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportAwaitClusterStateVersionAppliedAction
@Inject public TransportAwaitClusterStateVersionAppliedAction(ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, ThreadPool threadPool)
-
-
Method Details
-
newResponse
protected AwaitClusterStateVersionAppliedResponse newResponse(AwaitClusterStateVersionAppliedRequest request, List<TransportAwaitClusterStateVersionAppliedAction.NodeResponse> nodeResponses, List<FailedNodeException> failures) Description copied from class:TransportNodesActionCreate a newTransportNodesAction. This method is executed onTransportNodesAction.finalExecutor.- Specified by:
newResponsein classTransportNodesAction<AwaitClusterStateVersionAppliedRequest,AwaitClusterStateVersionAppliedResponse, TransportAwaitClusterStateVersionAppliedAction.NodeRequest, TransportAwaitClusterStateVersionAppliedAction.NodeResponse, 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
protected TransportAwaitClusterStateVersionAppliedAction.NodeRequest newNodeRequest(AwaitClusterStateVersionAppliedRequest request) -
newNodeResponse
protected TransportAwaitClusterStateVersionAppliedAction.NodeResponse newNodeResponse(StreamInput in, DiscoveryNode node) throws IOException -
nodeOperation
protected TransportAwaitClusterStateVersionAppliedAction.NodeResponse nodeOperation(TransportAwaitClusterStateVersionAppliedAction.NodeRequest 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). -
nodeOperationAsync
protected void nodeOperationAsync(TransportAwaitClusterStateVersionAppliedAction.NodeRequest request, Task task, ActionListener<TransportAwaitClusterStateVersionAppliedAction.NodeResponse> listener) Description copied from class:TransportNodesActionThis method can be overridden if a subclass needs to access to a listener in order to asynchronously respond to the node request. The default implementation is to fall through toTransportNodesAction.nodeOperation(NodeRequest, org.elasticsearch.tasks.Task).
-