Class TransportClusterAllocationExplainAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.action.support.master.TransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
org.elasticsearch.action.admin.cluster.allocation.TransportClusterAllocationExplainAction
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
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, indexNameExpressionResolver, threadPool, transportServiceFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, taskManager -
Constructor Summary
Constructors Constructor Description TransportClusterAllocationExplainAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterInfoService clusterInfoService, AllocationDeciders allocationDeciders, ShardsAllocator shardAllocator, AllocationService allocationService) -
Method Summary
Modifier and Type Method Description protected ClusterBlockExceptioncheckBlock(ClusterAllocationExplainRequest request, ClusterState state)protected java.lang.Stringexecutor()static ClusterAllocationExplanationexplainShard(ShardRouting shardRouting, RoutingAllocation allocation, ClusterInfo clusterInfo, boolean includeYesDecisions, AllocationService allocationService)static ShardRoutingfindShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation)protected voidmasterOperation(ClusterAllocationExplainRequest request, ClusterState state, ActionListener<ClusterAllocationExplainResponse> listener)protected ClusterAllocationExplainResponseread(StreamInput in)Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, getMasterActionName, localExecute, masterOperationMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute
-
Constructor Details
-
TransportClusterAllocationExplainAction
@Inject public TransportClusterAllocationExplainAction(TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterInfoService clusterInfoService, AllocationDeciders allocationDeciders, ShardsAllocator shardAllocator, AllocationService allocationService)
-
-
Method Details
-
executor
protected java.lang.String executor()- Specified by:
executorin classTransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
-
read
- Specified by:
readin classTransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>- Throws:
java.io.IOException
-
checkBlock
protected ClusterBlockException checkBlock(ClusterAllocationExplainRequest request, ClusterState state)- Specified by:
checkBlockin classTransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
-
masterOperation
protected void masterOperation(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, AllocationService allocationService) -
findShardToExplain
public static ShardRouting findShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation)
-