Module org.elasticsearch.server
Class TransportClusterAllocationExplainAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
org.elasticsearch.action.support.HandledTransportAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
org.elasticsearch.action.support.master.TransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
org.elasticsearch.action.admin.cluster.allocation.TransportClusterAllocationExplainAction
- All Implemented Interfaces:
ActionWithReservedState<ClusterAllocationExplainRequest>
public class TransportClusterAllocationExplainAction
extends TransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
The
TransportClusterAllocationExplainAction is responsible for actually executing the explanation of a shard's allocation on the
master node in the cluster.-
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, executor, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportClusterAllocationExplainAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, ClusterInfoService clusterInfoService, SnapshotsInfoService snapshotsInfoService, AllocationDeciders allocationDeciders, AllocationService allocationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ClusterBlockExceptioncheckBlock(ClusterAllocationExplainRequest request, ClusterState state) static ClusterAllocationExplanationexplainShard(ShardRouting shardRouting, RoutingAllocation allocation, ClusterInfo clusterInfo, boolean includeYesDecisions, boolean isSpecificShard, AllocationService allocationService) static ShardRoutingfindShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation) protected voidmasterOperation(Task task, ClusterAllocationExplainRequest request, ClusterState state, ActionListener<ClusterAllocationExplainResponse> listener) Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, localExecuteMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.reservedstate.ActionWithReservedState
modifiedKeys, reservedStateHandlerName, validateForReservedState
-
Field Details
-
TYPE
-
-
Constructor Details
-
TransportClusterAllocationExplainAction
@Inject public TransportClusterAllocationExplainAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, ClusterInfoService clusterInfoService, SnapshotsInfoService snapshotsInfoService, AllocationDeciders allocationDeciders, AllocationService allocationService)
-
-
Method Details
-
checkBlock
protected ClusterBlockException checkBlock(ClusterAllocationExplainRequest request, ClusterState state) - Specified by:
checkBlockin classTransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
-
masterOperation
protected void masterOperation(Task task, ClusterAllocationExplainRequest request, ClusterState state, ActionListener<ClusterAllocationExplainResponse> listener) - Specified by:
masterOperationin classTransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
-
explainShard
public static ClusterAllocationExplanation explainShard(ShardRouting shardRouting, RoutingAllocation allocation, ClusterInfo clusterInfo, boolean includeYesDecisions, boolean isSpecificShard, AllocationService allocationService) -
findShardToExplain
public static ShardRouting findShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation)
-