public abstract class BaseGatewayShardAllocator extends AbstractComponent
deprecationLogger, logger, settings
Constructor and Description |
---|
BaseGatewayShardAllocator(Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
allocateUnassigned(RoutingAllocation allocation)
Allocate unassigned shards to nodes (if any) where valid copies of the shard already exist.
|
protected java.util.List<NodeAllocationResult> |
buildDecisionsForAllNodes(ShardRouting shard,
RoutingAllocation allocation)
Builds decisions for all nodes in the cluster, so that the explain API can provide information on
allocation decisions for each node, while still waiting to allocate the shard (e.g.
|
abstract AllocateUnassignedDecision |
makeAllocationDecision(ShardRouting unassignedShard,
RoutingAllocation allocation,
org.apache.logging.log4j.Logger logger)
Make a decision on the allocation of an unassigned shard.
|
logDeprecatedSetting, logRemovedSetting, nodeName
public BaseGatewayShardAllocator(Settings settings)
public void allocateUnassigned(RoutingAllocation allocation)
makeAllocationDecision(ShardRouting, RoutingAllocation, Logger)
to make decisions on assigning shards to nodes.allocation
- the allocation state container objectpublic abstract AllocateUnassignedDecision makeAllocationDecision(ShardRouting unassignedShard, RoutingAllocation allocation, org.apache.logging.log4j.Logger logger)
allocateUnassigned(RoutingAllocation)
to make decisions about whether or not
the shard can be allocated by this allocator and if so, to which node it will be allocated.unassignedShard
- the unassigned shard to allocateallocation
- the current routing statelogger
- the loggerAllocateUnassignedDecision
with the final decision of whether to allocate and details of the decisionprotected java.util.List<NodeAllocationResult> buildDecisionsForAllNodes(ShardRouting shard, RoutingAllocation allocation)