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
ModifierConstructorDescriptionprotected
ReservedStateAwareHandledTransportAction
(String actionName, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, Writeable.Reader<Request> requestReader) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doExecute
(Task task, Request request, ActionListener<Response> listener) 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 stateMethods inherited from class org.elasticsearch.action.support.TransportAction
execute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
doExecute
in classTransportAction<Request extends ActionRequest,
Response extends ActionResponse>
-