Module org.elasticsearch.server
Package org.elasticsearch.action.support
Class TransportLocalClusterStateAction<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.TransportLocalClusterStateAction<Request,Response>
- Direct Known Subclasses:
TransportGetAliasesAction
public abstract class TransportLocalClusterStateAction<Request extends ActionRequest,Response extends ActionResponse>
extends HandledTransportAction<Request,Response>
Analogue of
TransportMasterNodeReadAction
except that it runs on the local node rather
than delegating to the master.-
Field Summary
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransportLocalClusterStateAction
(String actionName, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, Writeable.Reader<Request> requestReader, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ClusterBlockException
checkBlock
(Request request, ClusterState state) protected final void
doExecute
(Task task, Request request, ActionListener<Response> listener) protected abstract void
localClusterStateOperation
(Task task, Request request, ClusterState state, ActionListener<Response> listener) Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, localOnly
-
Field Details
-
clusterService
-
executor
-
-
Constructor Details
-
TransportLocalClusterStateAction
protected TransportLocalClusterStateAction(String actionName, ClusterService clusterService, TransportService transportService, ActionFilters actionFilters, Writeable.Reader<Request> requestReader, Executor executor)
-
-
Method Details
-
checkBlock
-
doExecute
- Specified by:
doExecute
in classTransportAction<Request extends ActionRequest,
Response extends ActionResponse>
-
localClusterStateOperation
protected abstract void localClusterStateOperation(Task task, Request request, ClusterState state, ActionListener<Response> listener) throws Exception - Throws:
Exception
-