Module org.elasticsearch.server
Class TransportLocalClusterStateAction<Request extends LocalClusterStateRequest,Response extends ActionResponse>
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.local.TransportLocalClusterStateAction<Request,Response>
- Direct Known Subclasses:
TransportClusterGetSettingsAction,TransportLocalProjectMetadataAction
public abstract class TransportLocalClusterStateAction<Request extends LocalClusterStateRequest,Response extends ActionResponse>
extends TransportAction<Request,Response>
Analogue of
TransportMasterNodeReadAction except that it runs on the local node rather
than delegating to the master.-
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransportLocalClusterStateAction(String actionName, ActionFilters actionFilters, TaskManager taskManager, ClusterService clusterService, Executor executor) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ClusterBlockExceptioncheckBlock(Request request, ClusterState state) protected final voiddoExecute(Task task, Request request, ActionListener<Response> listener) protected abstract voidlocalClusterStateOperation(Task task, Request request, ClusterState state, ActionListener<Response> listener) Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Field Details
-
clusterService
-
executor
-
-
Constructor Details
-
TransportLocalClusterStateAction
protected TransportLocalClusterStateAction(String actionName, ActionFilters actionFilters, TaskManager taskManager, ClusterService clusterService, Executor executor)
-
-
Method Details
-
checkBlock
-
localClusterStateOperation
protected abstract void localClusterStateOperation(Task task, Request request, ClusterState state, ActionListener<Response> listener) throws Exception - Throws:
Exception
-
doExecute
- Specified by:
doExecutein classTransportAction<Request extends LocalClusterStateRequest,Response extends ActionResponse>
-