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.deprecationLogger, logger, settings
actionName, indexNameExpressionResolver, taskManager, threadPool
clusterService, transportService
Constructor | 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 | 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() |
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, execute, execute
doExecute, doExecute, getMasterActionName, localExecute, masterOperation
@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)