Class TransportClusterInfoAction<Request extends ClusterInfoRequest<Request>,Response extends ActionResponse>
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<Request,Response>
org.elasticsearch.action.support.master.info.TransportClusterInfoAction<Request,Response>
- Direct Known Subclasses:
TransportGetIndexAction
,TransportGetMappingsAction
public abstract class TransportClusterInfoAction<Request extends ClusterInfoRequest<Request>,Response extends ActionResponse>
extends TransportMasterNodeReadAction<Request,Response>
-
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
ConstructorDescriptionTransportClusterInfoAction(String actionName, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, Writeable.Reader<Request> request, IndexNameExpressionResolver indexNameExpressionResolver, Writeable.Reader<Response> response)
-
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock(Request request, ClusterState state)
protected abstract void
doMasterOperation(Task task, Request request, String[] concreteIndices, ClusterState state, ActionListener<Response> listener)
protected void
masterOperation(Task task, Request request, ClusterState state, ActionListener<Response> listener)
Override this operation if access to the task parameter is neededprotected void
masterOperation(Request request, ClusterState state, ActionListener<Response> listener)
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
-
TransportClusterInfoAction
public TransportClusterInfoAction(String actionName, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, Writeable.Reader<Request> request, IndexNameExpressionResolver indexNameExpressionResolver, Writeable.Reader<Response> response)
-
-
Method Details
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<Request extends ClusterInfoRequest<Request>,Response extends ActionResponse>
-
masterOperation
protected final void masterOperation(Request request, ClusterState state, ActionListener<Response> listener)- Specified by:
masterOperation
in classTransportMasterNodeAction<Request extends ClusterInfoRequest<Request>,Response extends ActionResponse>
-
masterOperation
protected final void masterOperation(Task task, Request request, ClusterState state, ActionListener<Response> listener)Description copied from class:TransportMasterNodeAction
Override this operation if access to the task parameter is needed- Overrides:
masterOperation
in classTransportMasterNodeAction<Request extends ClusterInfoRequest<Request>,Response extends ActionResponse>
-
doMasterOperation
protected abstract void doMasterOperation(Task task, Request request, String[] concreteIndices, ClusterState state, ActionListener<Response> listener)
-