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, indexNameExpressionResolver, threadPool, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager
-
Constructor Summary
Constructors Constructor Description TransportClusterHealthAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, GatewayAllocator gatewayAllocator)
-
Method Summary
Modifier and Type Method Description protected ClusterBlockException
checkBlock(ClusterHealthRequest request, ClusterState state)
protected java.lang.String
executor()
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 neededprotected ClusterHealthResponse
read(StreamInput in)
Methods 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, GatewayAllocator gatewayAllocator)
-
-
Method Details
-
executor
protected java.lang.String executor()- Specified by:
executor
in classTransportMasterNodeAction<ClusterHealthRequest,ClusterHealthResponse>
-
read
- Specified by:
read
in classTransportMasterNodeAction<ClusterHealthRequest,ClusterHealthResponse>
- Throws:
java.io.IOException
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<ClusterHealthRequest,ClusterHealthResponse>
-
masterOperation
protected final void masterOperation(ClusterHealthRequest request, ClusterState state, ActionListener<ClusterHealthResponse> listener) throws java.lang.Exception- Specified by:
masterOperation
in classTransportMasterNodeAction<ClusterHealthRequest,ClusterHealthResponse>
- Throws:
java.lang.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>
-