Module org.elasticsearch.server
Class TransportGetDesiredBalanceAction
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<DesiredBalanceRequest,DesiredBalanceResponse>
org.elasticsearch.action.admin.cluster.allocation.TransportGetDesiredBalanceAction
- All Implemented Interfaces:
ActionWithReservedState<DesiredBalanceRequest>
public class TransportGetDesiredBalanceAction
extends TransportMasterNodeReadAction<DesiredBalanceRequest,DesiredBalanceResponse>
-
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, taskManager
-
Constructor Summary
ConstructorDescriptionTransportGetDesiredBalanceAction
(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ShardsAllocator shardsAllocator, ClusterInfoService clusterInfoService, WriteLoadForecaster writeLoadForecaster) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockException
checkBlock
(DesiredBalanceRequest request, ClusterState state) protected void
masterOperation
(Task task, DesiredBalanceRequest request, ClusterState state, ActionListener<DesiredBalanceResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeReadAction
localExecute
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, localOnly
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportGetDesiredBalanceAction
@Inject public TransportGetDesiredBalanceAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ShardsAllocator shardsAllocator, ClusterInfoService clusterInfoService, WriteLoadForecaster writeLoadForecaster)
-
-
Method Details
-
masterOperation
protected void masterOperation(Task task, DesiredBalanceRequest request, ClusterState state, ActionListener<DesiredBalanceResponse> listener) throws Exception - Specified by:
masterOperation
in classTransportMasterNodeAction<DesiredBalanceRequest,
DesiredBalanceResponse> - Throws:
Exception
-
checkBlock
- Specified by:
checkBlock
in classTransportMasterNodeAction<DesiredBalanceRequest,
DesiredBalanceResponse>
-