Module org.elasticsearch.xcore
Class TransportXPackUsageAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<XPackUsageRequest,XPackUsageResponse>
org.elasticsearch.action.support.local.TransportLocalClusterStateAction<XPackUsageRequest,XPackUsageResponse>
org.elasticsearch.xpack.core.action.TransportXPackUsageAction
public class TransportXPackUsageAction
extends TransportLocalClusterStateAction<XPackUsageRequest,XPackUsageResponse>
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.local.TransportLocalClusterStateAction
clusterService, executorFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportXPackUsageAction(ThreadPool threadPool, TransportService transportService, ClusterService clusterService, ActionFilters actionFilters, NodeClient client) NB prior to 9.0 this was a TransportMasterNodeReadAction so for BwC it must be registered with the TransportService until we no longer need to support calling this action remotely. -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(XPackUsageRequest request, ClusterState state) protected voidlocalClusterStateOperation(Task task, XPackUsageRequest request, ClusterState state, ActionListener<XPackUsageResponse> listener) protected List<ActionType<XPackUsageFeatureResponse>> Methods inherited from class org.elasticsearch.action.support.local.TransportLocalClusterStateAction
doExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
TransportXPackUsageAction
@Inject public TransportXPackUsageAction(ThreadPool threadPool, TransportService transportService, ClusterService clusterService, ActionFilters actionFilters, NodeClient client) NB prior to 9.0 this was a TransportMasterNodeReadAction so for BwC it must be registered with the TransportService until we no longer need to support calling this action remotely.
-
-
Method Details
-
usageActions
-
localClusterStateOperation
protected void localClusterStateOperation(Task task, XPackUsageRequest request, ClusterState state, ActionListener<XPackUsageResponse> listener) - Specified by:
localClusterStateOperationin classTransportLocalClusterStateAction<XPackUsageRequest,XPackUsageResponse>
-
checkBlock
- Specified by:
checkBlockin classTransportLocalClusterStateAction<XPackUsageRequest,XPackUsageResponse>
-