Class TransportClusterAllocationExplainAction
- java.lang.Object
-
- org.elasticsearch.common.component.AbstractComponent
-
- 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>
TheTransportClusterAllocationExplainActionis responsible for actually executing the explanation of a shard's allocation on the master node in the cluster.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.HandledTransportAction
HandledTransportAction.ChannelActionListener<Response extends TransportResponse,Request extends TransportRequest>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
clusterService, transportService
-
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, indexNameExpressionResolver, taskManager, threadPool
-
Fields inherited from class org.elasticsearch.common.component.AbstractComponent
deprecationLogger, logger, settings
-
-
Constructor Summary
Constructors Constructor Description TransportClusterAllocationExplainAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterInfoService clusterInfoService, AllocationDeciders allocationDeciders, ShardsAllocator shardAllocator, GatewayAllocator gatewayAllocator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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, GatewayAllocator gatewayAllocator, ShardsAllocator shardAllocator)static ShardRoutingfindShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation)protected voidmasterOperation(ClusterAllocationExplainRequest request, ClusterState state, ActionListener<ClusterAllocationExplainResponse> listener)protected ClusterAllocationExplainResponsenewResponse()-
Methods inherited from class org.elasticsearch.action.support.master.TransportMasterNodeAction
doExecute, doExecute, getMasterActionName, localExecute, masterOperation
-
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, execute, execute, execute
-
Methods inherited from class org.elasticsearch.common.component.AbstractComponent
nodeName
-
-
-
-
Constructor Detail
-
TransportClusterAllocationExplainAction
@Inject public TransportClusterAllocationExplainAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterInfoService clusterInfoService, AllocationDeciders allocationDeciders, ShardsAllocator shardAllocator, GatewayAllocator gatewayAllocator)
-
-
Method Detail
-
executor
protected java.lang.String executor()
- Specified by:
executorin classTransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
-
checkBlock
protected ClusterBlockException checkBlock(ClusterAllocationExplainRequest request, ClusterState state)
- Specified by:
checkBlockin classTransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
-
newResponse
protected ClusterAllocationExplainResponse newResponse()
- Specified by:
newResponsein 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, GatewayAllocator gatewayAllocator, ShardsAllocator shardAllocator)
-
findShardToExplain
public static ShardRouting findShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation)
-
-