public abstract class ReplicaShardAllocator extends AbstractComponent
deprecationLogger, logger, settings
Constructor and Description |
---|
ReplicaShardAllocator(Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
allocateUnassigned(RoutingAllocation allocation) |
protected abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> |
fetchData(ShardRouting shard,
RoutingAllocation allocation) |
void |
ignoreUnassignedIfDelayed(RoutingNodes.UnassignedShards.UnassignedIterator unassignedIterator,
ShardRouting shard,
RoutingChangesObserver changes)
Check if the allocation of the replica is to be delayed.
|
void |
processExistingRecoveries(RoutingAllocation allocation)
Process existing recoveries of replicas and see if we need to cancel them if we find a better
match.
|
logDeprecatedSetting, logRemovedSetting, nodeName
public ReplicaShardAllocator(Settings settings)
public void processExistingRecoveries(RoutingAllocation allocation)
public void allocateUnassigned(RoutingAllocation allocation)
public void ignoreUnassignedIfDelayed(RoutingNodes.UnassignedShards.UnassignedIterator unassignedIterator, ShardRouting shard, RoutingChangesObserver changes)
unassignedIterator
- iterator over unassigned shardsshard
- the shard which might be delayedprotected abstract AsyncShardFetch.FetchResult<TransportNodesListShardStoreMetaData.NodeStoreFilesMetaData> fetchData(ShardRouting shard, RoutingAllocation allocation)