public class TransportClusterAllocationExplainAction extends TransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>
TransportClusterAllocationExplainAction is responsible for actually executing the explanation of a shard's allocation on the
master node in the cluster.clusterService, transportServiceactionName, indexNameExpressionResolver, taskManager, threadPooldeprecationLogger, logger, settings| Constructor and Description |
|---|
TransportClusterAllocationExplainAction(Settings settings,
TransportService transportService,
ClusterService clusterService,
ThreadPool threadPool,
ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
ClusterInfoService clusterInfoService,
AllocationDeciders allocationDeciders,
ShardsAllocator shardAllocator,
GatewayAllocator gatewayAllocator) |
| Modifier and Type | Method and Description |
|---|---|
protected ClusterBlockException |
checkBlock(ClusterAllocationExplainRequest request,
ClusterState state) |
protected java.lang.String |
executor() |
static ClusterAllocationExplanation |
explainShard(ShardRouting shardRouting,
RoutingAllocation allocation,
ClusterInfo clusterInfo,
boolean includeYesDecisions,
GatewayAllocator gatewayAllocator,
ShardsAllocator shardAllocator) |
static ShardRouting |
findShardToExplain(ClusterAllocationExplainRequest request,
RoutingAllocation allocation) |
protected void |
masterOperation(ClusterAllocationExplainRequest request,
ClusterState state,
ActionListener<ClusterAllocationExplainResponse> listener) |
protected ClusterAllocationExplainResponse |
newResponse() |
doExecute, doExecute, getMasterActionName, localExecute, masterOperationexecute, execute, execute, executelogDeprecatedSetting, logRemovedSetting, nodeName@Inject public TransportClusterAllocationExplainAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver, ClusterInfoService clusterInfoService, AllocationDeciders allocationDeciders, ShardsAllocator shardAllocator, GatewayAllocator gatewayAllocator)
protected java.lang.String executor()
executor in class TransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>protected ClusterBlockException checkBlock(ClusterAllocationExplainRequest request, ClusterState state)
checkBlock in class TransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>protected ClusterAllocationExplainResponse newResponse()
newResponse in class TransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>protected void masterOperation(ClusterAllocationExplainRequest request, ClusterState state, ActionListener<ClusterAllocationExplainResponse> listener)
masterOperation in class TransportMasterNodeAction<ClusterAllocationExplainRequest,ClusterAllocationExplainResponse>public static ClusterAllocationExplanation explainShard(ShardRouting shardRouting, RoutingAllocation allocation, ClusterInfo clusterInfo, boolean includeYesDecisions, GatewayAllocator gatewayAllocator, ShardsAllocator shardAllocator)
public static ShardRouting findShardToExplain(ClusterAllocationExplainRequest request, RoutingAllocation allocation)