Class TransportClusterHealthAction
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<ClusterHealthRequest,ClusterHealthResponse>
org.elasticsearch.action.admin.cluster.health.TransportClusterHealthAction
public class TransportClusterHealthAction
extends TransportMasterNodeReadAction<ClusterHealthRequest,ClusterHealthResponse>
-
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
ConstructorDescriptionTransportClusterHealthAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, AllocationService allocationService)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock(ClusterHealthRequest request, ClusterState state)
protected void
masterOperation(ClusterHealthRequest request, ClusterState state, ActionListener<ClusterHealthResponse> listener)
protected void
masterOperation(Task task, ClusterHealthRequest request, ClusterState unusedState, ActionListener<ClusterHealthResponse> 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
-
TransportClusterHealthAction
@Inject public TransportClusterHealthAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, AllocationService allocationService)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<ClusterHealthRequest,ClusterHealthResponse>
-
masterOperation
protected final void masterOperation(ClusterHealthRequest request, ClusterState state, ActionListener<ClusterHealthResponse> listener) throws Exception- Specified by:
masterOperation
in classTransportMasterNodeAction<ClusterHealthRequest,ClusterHealthResponse>
- Throws:
Exception
-
masterOperation
protected void masterOperation(Task task, ClusterHealthRequest request, ClusterState unusedState, ActionListener<ClusterHealthResponse> listener)Description copied from class:TransportMasterNodeAction
Override this operation if access to the task parameter is needed- Overrides:
masterOperation
in classTransportMasterNodeAction<ClusterHealthRequest,ClusterHealthResponse>
-