public abstract class ReplicaShardAllocator extends BaseGatewayShardAllocator
deprecationLogger, logger, settings
Constructor and Description |
---|
ReplicaShardAllocator(Settings settings) |
Modifier and Type | Method and Description |
---|---|
protected abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> |
fetchData(ShardRouting shard,
RoutingAllocation allocation) |
protected abstract boolean |
hasInitiatedFetching(ShardRouting shard)
Returns a boolean indicating whether fetching shard data has been triggered at any point for the given shard.
|
AllocateUnassignedDecision |
makeAllocationDecision(ShardRouting unassignedShard,
RoutingAllocation allocation,
org.apache.logging.log4j.Logger logger)
Make a decision on the allocation of an unassigned shard.
|
void |
processExistingRecoveries(RoutingAllocation allocation)
Process existing recoveries of replicas and see if we need to cancel them if we find a better
match.
|
allocateUnassigned, buildDecisionsForAllNodes
logDeprecatedSetting, logRemovedSetting, nodeName
public ReplicaShardAllocator(Settings settings)
public void processExistingRecoveries(RoutingAllocation allocation)
public AllocateUnassignedDecision makeAllocationDecision(ShardRouting unassignedShard, RoutingAllocation allocation, org.apache.logging.log4j.Logger logger)
BaseGatewayShardAllocator
BaseGatewayShardAllocator.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.makeAllocationDecision
in class BaseGatewayShardAllocator
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 abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> fetchData(ShardRouting shard, RoutingAllocation allocation)
protected abstract boolean hasInitiatedFetching(ShardRouting shard)