Class TransportClusterStateAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeReadAction<ClusterStateRequest,ClusterStateResponse>
org.elasticsearch.action.admin.cluster.state.TransportClusterStateAction
public class TransportClusterStateAction
extends TransportMasterNodeReadAction<ClusterStateRequest,ClusterStateResponse>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, localConnection, taskManager
-
Constructor Summary
ConstructorDescriptionTransportClusterStateAction
(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock
(ClusterStateRequest request, ClusterState state) protected void
masterOperation
(ClusterStateRequest request, ClusterState state, ActionListener<ClusterStateResponse> listener) protected void
masterOperation
(Task task, ClusterStateRequest request, ClusterState state, ActionListener<ClusterStateResponse> listener) Override this operation if access to the task parameter is neededMethods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeReadAction
localExecute
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportClusterStateAction
@Inject public TransportClusterStateAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<ClusterStateRequest,
ClusterStateResponse>
-
masterOperation
protected void masterOperation(ClusterStateRequest request, ClusterState state, ActionListener<ClusterStateResponse> listener) throws IOException - Specified by:
masterOperation
in classTransportMasterNodeAction<ClusterStateRequest,
ClusterStateResponse> - Throws:
IOException
-
masterOperation
protected void masterOperation(Task task, ClusterStateRequest request, ClusterState state, ActionListener<ClusterStateResponse> listener) throws IOException Description copied from class:TransportMasterNodeAction
Override this operation if access to the task parameter is needed- Overrides:
masterOperation
in classTransportMasterNodeAction<ClusterStateRequest,
ClusterStateResponse> - Throws:
IOException
-