Module org.elasticsearch.server
Package org.elasticsearch.action.support
Class ReservedStateAwareHandledTransportAction<Request extends ActionRequest,Response extends ActionResponse>
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.ReservedStateAwareHandledTransportAction<Request,Response>
- All Implemented Interfaces:
ActionWithReservedState<Request>
public abstract class ReservedStateAwareHandledTransportAction<Request extends ActionRequest,Response extends ActionResponse>
extends HandledTransportAction<Request,Response>
implements ActionWithReservedState<Request>
An extension of the
HandledTransportAction class, which wraps the doExecute call with a check for clashes
with the reserved cluster state.-
Field Summary
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReservedStateAwareHandledTransportAction(String actionName, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, Writeable.Reader<Request> requestReader) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(Task task, Request request, ActionListener<Response> listener) protected abstract voiddoExecuteProtected(Task task, Request request, ActionListener<Response> listener) A doExecute method wrapped with a check for clashes with updates to the reserved cluster stateMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Constructor Details
-
ReservedStateAwareHandledTransportAction
protected ReservedStateAwareHandledTransportAction(String actionName, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, Writeable.Reader<Request> requestReader)
-
-
Method Details
-
doExecuteProtected
protected abstract void doExecuteProtected(Task task, Request request, ActionListener<Response> listener) A doExecute method wrapped with a check for clashes with updates to the reserved cluster state -
doExecute
- Specified by:
doExecutein classTransportAction<Request extends ActionRequest,Response extends ActionResponse>
-